Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,如果您的 package.json 文件包含:
"scripts": { "start": "make start", "test": "make test", }
^ nodejitsu 能否解析并实现“make start”?
如果 server.js 文件包含以下目录的静态文件路径,则只有 makefile 功能将起作用。
Nodejitsu 应该可以很好地解析这个。只要确保您node <app file>.js在某个地方调用 Makefile,或者将其更改为make start && node <app file.js>. Nodejitsu 用于npm start启动您的应用程序,因此在未启动应用程序的情况下退出 Makefile 会导致部署失败。
node <app file>.js
make start && node <app file.js>
npm start