部署到弹性beanstalk时出错 – 未知作业:nodejs

我正在部署一个meteor项目到豆茎应用程序,但我收到错误:

Script /opt/elasticbeanstalk/hooks/appdeploy/enact/50start.sh failed with returncode 1 

并在/var/log/directory-hooks-executor.log我find:

 status: Unknown job: nodejs Failed to find status of job. Traceback (most recent call last): File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 599, in <module> main() File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 583, in main nodejs_upstart.start() File "/opt/elasticbeanstalk/containerfiles/ebnode.py", line 199, in start raise e Exception: Failed to run command: None 

我正在运行64位Amazon Linux 2014.03 v1.1.0运行Node.js的任何想法的原因?

在我的情况下,当我传递一个Json值作为ENVvariables时,产生了这个错误。

发生这种情况是因为Beanstalk使用“”将所有envvariables存储在/tmp/deployment/config/#etc#init#nodejs.conf文件中。

例如:

 METEOR_SETTINGS='{ "public": { } }' 

将被写入nodejs.conf中

 METEOR_SETTINGS="{ "public": { } }" 

由于string没有正确closures,它会产生错误。