开发者

Rails: Set a Gemfile item for remote server only when running bundle

开发者 https://www.devze.com 2023-03-14 17:03 出处:网络
I am trying to get this Rails 3.1 app onto Heroku, I am on Win7 64bit and cannot exactly install therubyracer gem, which is,开发者_如何转开发 so far from what I can see thru trials, required to not ge

I am trying to get this Rails 3.1 app onto Heroku, I am on Win7 64bit and cannot exactly install therubyracer gem, which is,开发者_如何转开发 so far from what I can see thru trials, required to not get an error (H10 code) from Heroku.

I already do a

group :production do gem 'therubyracer' end

to try to separate it from development env, but no matter, when I run bundle, it still tries to install therubyracer which throws error as-of-now on Windows.

Is there a way that I can specify that gem in the gemfile but it will be completely ignore on the dev box?

Thanks


Do try bundle install --without development if you want gems specified under group :development to be ignored.

Kindly note that this will create a .bundle directory which will cause this to persist in the future. It's best to add this folder to your .gitignore if using git; simply remove it if want to remove this persistance.

0

精彩评论

暂无评论...
验证码 换一张
取 消