我在Heroku上部署过几次Rails 4应用程序,还不错,但在理解全栈web开发方面,我仍然是个新手。我尝试将一个应用程序部署到AWS Elastic Beanstalk (在用户界面和通过Git都有zip文件),但是点击我的default - elastic .elasticbeanstalk.com仍然会将我带到默认的elastic beanstalk“恭喜”页面,而不是我的应用程序。
我拉出了我最后一次尝试部署的日志文件,并在下面发布了失败/错误。我不知道这到底是什么意思,也不知道如何真正修改我的Rails文件来适应它们。任何帮助都将不胜感激,我已经在网上找过了,没有太多关于这方面的信息!
/var/log/eb-tools.log https://gist.github.com/geeko505/d724322b628da8766754
/var/log/cfn-init.log https://gist.github.com/geeko505/f89cca57947c3ac920cd
在最下面:
Fetching git://github.com/gregbell/active_admin.git
sh: git: command not found
Git error: command `git clone 'git://github.com/gregbell/active_admin.git'
"/usr/local/share/ruby/gems/2.0/cache/bundler/git/active_admin- d67faab23e9b7asddefbc8efb34a2344a851e9f78b2ca"
--bare --no-hardlinks` in directory /var/app/ondeck has failed.
2014-06-16 01:33:22,778 [ERROR] (28326 MainThread) [directoryHooksExecutor.py-33] [root directoryHooksExecutor error] Script /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed with returncode 11别担心,我把密钥换成了乱七八糟的
发布于 2014-06-16 23:45:43
您应该使用ebextensions在您的beanstalk环境中安装git。在部署到beanstalk之前,尝试在你的应用程序源目录中创建一个路径为.ebextensions/00-install-git.config的文件。
packages:
yum:
git: []确保在部署之前提交此文件,以防您使用eb/git将其部署到beanstalk。
https://stackoverflow.com/questions/24235964
复制相似问题