You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 version
is 3.4.0Here'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 runningexpressworks 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.The text was updated successfully, but these errors were encountered: