我正在尝试在elasticbeanstalk上部署node.js应用程序(我在这里按照指示http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_nodejs_express.html),其中需要完成以下操作:
步骤6 [使用数据库更新应用程序]要点5.在本地计算机上,更新node-express/.ebextensions/static.config以向环境变量添加生产标志.
option_settings: - namespace: aws:elasticbeanstalk:container:nodejs:staticfiles option_name: /public value: /public - option_name: NODE_ENV value: production
但是当我部署时,我收到错误:
2014-08-29 10:15:11 ERROR The configuration file .ebextensions/static.config in application version git-5376bdbd807e9f181e6a907f996068b4075dffe0-1409278503377 contains invalid YAML or JSON. YAML exception: while parsing a block mapping in "", line 1, column 1: option_settings: ^ expected , but found BlockEntry in " ", line 5, column 1: - option_name: NODE_ENV ^ , JSON exception: Unexpected character (o) at position 0.. Update the configuration file.
我是新手,无法弄清楚如何纠正它.请帮忙.