例如,如果您的package.json文件包含:
"scripts": {
"start": "make start",
"test": "make test",
}^ nodejitsu能够解析并实现"make start“吗?
发布于 2013-10-05 01:23:51
如果server.js文件包含以下目录的静态文件路径,则只有makefile功能有效。
发布于 2014-01-10 08:51:16
Nodejitsu应该可以很好地解析它。只需确保您在Makefile中的某个位置调用了node <app file>.js,或者将其更改为make start && node <app file.js>。Nodejitsu使用npm start启动您的应用程序,因此在未启动应用程序的情况下退出Makefile将导致部署失败。
https://stackoverflow.com/questions/18756186
复制相似问题