I'm using Google App Engine and Node.js. I'm able to follow all the instructions for a basic app without issue.
However, I'd like my app.yaml
file to contain handlers
sections to serve static files (as documented), e.g.
- url: /app.css
static_files: static/app.css
upload: static/app.css
The documentation for Node.js on App Engine says to simply run npm start
to run my server, but that just runs the Node server, not the App Engine server that's configured by app.yaml
. That means my local server serves a page, but the request for CSS fails!
I can't figure out how to run something (without deploying to App Engine) that will serve both my Node app and the static files. How can I quickly start a server that's similar to what will run in production?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…