gemfile

cap deploy:migrations fails with Could not locate Gemfile

耗尽温柔 提交于 2019-12-11 06:25:43
问题 I'm working on my first rails deployment and having a problem I can't figure out. mac osx 10.8.2 ruby 1.8.7 Rails 3.2.6 rvm 1.17.2 I've been following this tutorial http://brandnewrails.wordpress.com/ and got stuck on 7c. I set it all up in RVM, got git running on the server, ran bundle install in the app, and wrote the Capistrano recipe in my_app/config/deploy.rb Then I ran: $ capify . no problem $ cap deploy:setup no errors $ cap deploy:check returned You appear to have all necessary

Heroku deployment fails during Bundle Install

旧巷老猫 提交于 2019-12-11 03:33:59
问题 When pushing my app Rails3 to Heroku, it gets rejected with: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment sh: Syntax error: Unterminated quoted string but when I run ruby -c Gemfile I get Syntax OK . Any tips? Edit: source code can be found here: https://github.com/tubedude/portfolio_tracker I'm using ruby 2.1.0 and Rails 3.2.17 回答1: We had the same issue on two of our apps. It turned out that a recent stack upgrade

Two versions of gems in production rails deployment

こ雲淡風輕ζ 提交于 2019-12-11 01:03:51
问题 I think i have some issues with my gemfile in production, as it differs from my development, which i believe is causing my deployment (Capistrano) to fail, well at bundle install time at least Development actionmailer (3.2.3) actionpack (3.2.3) activemodel (3.2.3) activerecord (3.2.3) activeresource (3.2.3) activesupport (3.2.3) arel (3.0.2) bcrypt-ruby (3.0.1) builder (3.0.4) bundler (1.3.4) capistrano (2.14.2, 2.12.0) climate_control (0.0.3) cocaine (0.5.1, 0.2.1) coffee-rails (3.2.2)

“Your Ruby version is 1.9.3, but your Gemfile specified 1.9.3-p194”

徘徊边缘 提交于 2019-12-10 21:49:12
问题 RVM won't let me run bundle because it thinks my Ruby version is different from what my Gemfile says, but it isn't: $ rvm list rvm rubies => ruby-1.9.3-p194 [ x86_64 ] ruby-1.9.3-p429 [ x86_64 ] * ruby-2.0.0-p195 [ x86_64 ] # => - current # =* - current && default # * - default $ ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin13.0.0] Gemfile: ruby '1.9.3-p194' But then: $ bundle install Your Ruby version is 1.9.3, but your Gemfile specified 1.9.3-p194 $ This seems like a

attempting to execute any command starting “rails” yields “Could not locate Gemfile”

旧街凉风 提交于 2019-12-10 20:10:48
问题 I am trying to install a new rails app. I've already got several rails apps on my machine, all working fine. $ rails new app Could not locate Gemfile Then I figured I'd run a trace to figure out what was going on, as you wouldn't expect to have a Gemfile at this point anyway, as typically the above command would create an entire new rails app in a directory named app with the Gemfile contained within that directory. $ rails new app --trace Could not locate Gemfile So I tried to reinstall

ruby 2.0.0 bundle fails with 'key: value' on Gemfile

こ雲淡風輕ζ 提交于 2019-12-10 19:48:34
问题 I'm trying to update my gems using a Gemfile but always fails in the same line: Gemfile: group :doc do gem 'sdoc', require: false end Command: $ bundle update I'm always getting this error: Gemfile syntax error: /Users/GrzegorzFeathers/Documents/Edx/SaaS/rottenpotatoes/Gemfile:32: syntax error, unexpected ':', expecting kEND gem 'sdoc', require: false When I change that line syntax to this, the problem was solved: gem 'sdoc', :require => false But why can't I use the other one?, I checked my

You have already activated rack 1.6.0, but your Gemfile requires rack 1.6.4. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)

假如想象 提交于 2019-12-10 18:08:42
问题 I'm working with Elastic Beanstalk and I'm getting this error in my logs- You have already activated rack 1.6.0, but your Gemfile requires rack 1.6.4. Prepending bundle exec to your command may solve this. (Gem::LoadError) I've seen all related questions(Related Question) but nothing worked for me. When I do gem list | grep rack i get- rack (1.6.4) rack-test (0.6.3) That means I don't have rack(1.6.0) installed, which is confirmed when I do gem uninstall rack -v 1.6.0 it gives me- ERROR:

RubyMine doesn't recognize gem from git repository

时光总嘲笑我的痴心妄想 提交于 2019-12-10 16:40:15
问题 We have a git repository with a custom gem. To install it Gemfile has a line: gem 'my-gem', :git => 'git@192.168.1.100:my-gem.git' After installing the gem, it is not shown in RubyMine`s External Libraries. How to make the gem be shown in External Libraries and code from the gem be autocompleted? 回答1: We get this error as well, so it's probably a bug in RubyMine. A workaround is to check out that gem repo and tell bundler to use it. Note that the remote repository will not be used anymore.

Capistrano could not locate Gemfile error on application deployment

倖福魔咒の 提交于 2019-12-10 13:03:42
问题 I'm trying to deploy my Rails application to production server and I decided to deploy it to DigitalOcean using this guide + RVM. To deploy I use following command: cap production deploy However, it fails at some part requiring gemfile. Here's the log of failed deployment: DEBUG[323dfd0e] Command: cd /home/deploy/zwiadowcy/releases/20140628164657 && ~/.rvm/bin/rvm default do bundle install --binstubs /home/deploy/zwiadowcy/shared/bin --path /home/deploy/zwiadowcy/shared/bundle --without

Why is bundle installing the wrong version for bigdecimal using 1.2.0?

亡梦爱人 提交于 2019-12-10 11:58:10
问题 I'm using Bundle to install gems in d:/cucumbertests/cucumber/ successfully, which installs BigDecimal v 1.1.0. This failed in d:/cucumbertests/cucumber/itinfix which installed BigDecimal v 1.2.0. How do I identify the correct version of BigDecimal in my Gemfile in d:/cucumbertests/cucumber/itinfix ? Why is the version of BigDecimal correct in d:/cucumbertests/cucumber ? The latest version is 1.2.0, found by running gem query --remote --name-matches bigdecimal is: REMOTE GEMS: bigdecimal (1.2