I deployed my rails5 app to elastic beanstalk container and /log/puma.rb
saids CMD-AppDeploy succeeded
. I checked that schema migration and gem installation are all completed by seeing the log.
我将rails5应用程序部署到弹性beanstalk容器和/log/puma.rb表示CMD-AppDeploy成功。我检查了架构迁移和gem安装都是通过查看日志来完成的。
However, when I open the page by eb open
command, it returns 522 status. How should I do to further investigation in this case?
但是,当我通过eb open命令打开页面时,它返回522状态。在这种情况下我该如何进一步调查?
1 个解决方案
#1
0
Just for reference - this can happen if the SECRET_KEY_BASE environment variable is unset. To set this environment variable on elastic beanstalk, you can:
仅供参考 - 如果未设置SECRET_KEY_BASE环境变量,则会发生这种情况。要在弹性beanstalk上设置此环境变量,您可以:
$ rake secret
$ rake secret
$ eb setenv SECRET_KEY_BASE=your-secret-key-generated-above
$ eb setenv SECRET_KEY_BASE = your-secret-key-generated-above
#1
0
Just for reference - this can happen if the SECRET_KEY_BASE environment variable is unset. To set this environment variable on elastic beanstalk, you can:
仅供参考 - 如果未设置SECRET_KEY_BASE环境变量,则会发生这种情况。要在弹性beanstalk上设置此环境变量,您可以:
$ rake secret
$ rake secret
$ eb setenv SECRET_KEY_BASE=your-secret-key-generated-above
$ eb setenv SECRET_KEY_BASE = your-secret-key-generated-above