Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stylish CSS "run" doesn't pass but "verify" does #132

Open
brentpayton opened this issue Jan 28, 2017 · 0 comments
Open

Stylish CSS "run" doesn't pass but "verify" does #132

brentpayton opened this issue Jan 28, 2017 · 0 comments

Comments

@brentpayton
Copy link

brentpayton commented Jan 28, 2017

expressworks version is 3.4.0

Here's my code:

`var express = require('express');
var app = express();
var path = require('path');
var port = process.argv[2];

app.use(require('stylus').middleware(path.join(__dirname, 'public')));

app.get('/home', function (req, res) {
res.end('Hello World!');
});

app.use(express.static(process.argv[3] || path.join(__dirname, 'public')));

app.listen(port);`

I can see that main.css is being served by using curl localhost/main.css

When setting the debug variable with set DEBUG=express:* before running expressworks run [filename.js], I can see that the correct URL is being requested. Where [filename.js] is a placeholder in this document for my actual filename.

When I use expressworks run [filename.js] I get "Cannot GET /main.css"

I ended all node processes and tried again with no change.

expressworks verify [filename.js] passes, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant