Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 有没有办法在Elastic Beanstalk上部署coffeescript应用程序?_Amazon Web Services_Coffeescript_Amazon Elastic Beanstalk - Fatal编程技术网

Amazon web services 有没有办法在Elastic Beanstalk上部署coffeescript应用程序?

Amazon web services 有没有办法在Elastic Beanstalk上部署coffeescript应用程序?,amazon-web-services,coffeescript,amazon-elastic-beanstalk,Amazon Web Services,Coffeescript,Amazon Elastic Beanstalk,我一直在Elastic Beanstalk上玩Node.js,但在部署基于coffeescript的应用程序时遇到了障碍 我注意到NodeCommand参数,控制台说,该参数将尝试app.js然后server.js然后npm start,之后我修改了我的package.json以拥有此部分 "scripts": { "start": "coffee app.coffee" } 如果失败,我还将NodeCommand配置为coffee app.coffee,但没有效果 有没有办法在Elast

我一直在Elastic Beanstalk上玩Node.js,但在部署基于coffeescript的应用程序时遇到了障碍

我注意到
NodeCommand
参数,控制台说,该参数将尝试
app.js
然后
server.js
然后
npm start
,之后我修改了我的
package.json
以拥有此部分

"scripts": {
  "start": "coffee app.coffee"
}
如果失败,我还将
NodeCommand
配置为
coffee app.coffee
,但没有效果


有没有办法在Elastic Beanstalk上运行coffeescript应用程序?

npm start
应该可以正常工作。在elastic beanstalk中启动时,您的路径很可能不包括
节点模块/.bin
文件夹,因此尝试
/node\u模块/.bin/coffee app.coffee
作为启动脚本。

npm start
应该可以正常工作。在elastic beanstalk内部启动时,您的路径很可能不包括
节点_modules/.bin
文件夹,因此,请尝试将
/node\u modules/.bin/coffee app.coffee
作为您的开始脚本。

我将coffee脚本从一个开发人员依赖项更改为package.json中的一个标准依赖项,这为我解决了这个错误。

我将coffee脚本从一个开发人员依赖项更改为package.json中的一个标准依赖项,从而解决了这个错误我