Rails 3.0.0,乘客2.2.15:
gem 'paperclip', :git => 'git://github.com/lmumar/paperclip.git', :branch => 'rails3'
到您的Gemfilebundle installrails/script server&access 开始也有效未检出git://github.com/lmumar/paperclip.git(在rails3).请运行bundle install(Bundler :: GitError)
我曾尝试bundler pack(不利于)和设置BUNDER_HOME到〜/ .bundler(回纹针的git得到由安装有bundler install在.htaccess和不同的地方)在配置/*.RB,但没有成功,太.
〜/ .bundler是由相同的用户Rails项目(客运此用户下运行)所拥有,所以它不可能是一个权限问题.sudo已安装并调用bundle install.
任何提示?
我在AWS'弹性beanstalk上建立了一个RoR环境.我能够进入我的EC2实例.我的主目录是/ home/ec2-user,它实际上是空的.如果我向上移动目录,还有一个我无法访问的/ home/webapp目录.
有没有办法在弹性beanstalk实例上运行rake命令或rails控制台?
如果我键入rails console我得到Usage: rails new APP_PATH [options]
如果我键入RAILS_ENV =生产包exec rails console,我得到" Could not locate Gemfile"
ruby-on-rails amazon-ec2 amazon-web-services amazon-elastic-beanstalk
我收到部署到Elastic Beanstalk的错误,因为实例上没有git.我的package.json中的一个依赖项依赖于git存储库并且需要git clone.实例上没有安装Git.我尝试通过.ebextensions .conf文件安装它,同时部署,通过yum,但当我ssh到实例时,它不存在.
问题是:npm install在对该实例调用之前,在Elastic Beanstalk上运行的Linux实例上安装和使用git的正确方法是什么?
这是显示错误的日志:
[2015-04-18T09:00:02.815Z] ERROR [1777] : Command execution failed: Activity failed. (ElasticBeanstalk::ActivityFatalError)
caused by: + /opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install
npm WARN package.json amity-api-v2@2.0.0 No repository field.
npm WARN package.json amity-api-v2@2.0.0 No README data
npm WARN `git config --get remote.origin.url` returned wrong result (https://github.com/awslabs/dynamodb-document-js-sdk) undefined
npm WARN `git config --get remote.origin.url` returned wrong result (https://github.com/awslabs/dynamodb-document-js-sdk) undefined
npm ERR! git clone https://github.com/awslabs/dynamodb-document-js-sdk undefined
npm ERR! git clone https://github.com/awslabs/dynamodb-document-js-sdk undefined
npm ERR! …Run Code Online (Sandbox Code Playgroud) git amazon-web-services node.js npm amazon-elastic-beanstalk
我正在尝试在AWS上部署一个狂欢应用程序.设置elastic-beanstalk并添加到my_project/.ebextensions/this .config文件之后
packages:
yum:
git-core: []
container_commands:
bundle:
command: "gem install bundle"
assets:
command: "bundle exec rake assets:precompile"
db:
command: "bundle exec rake db:migrate"
leader_only: true
Run Code Online (Sandbox Code Playgroud)
我使用git aws.push来部署我的应用程序,只是为了得到这个错误消息:
在任何来源中都找不到rake-10.1.0(Bundler :: GemNotFound)
仔细检查我的宝石套装,使用捆绑show rake给我:
... /gems/rake-10.1.0
从AWS查看日志文件时,我发现此错误:
sh:git:命令未找到Git错误:命令`git clone'https://github.com/spree/spree.git '
我究竟做错了什么?