By Ryan Booker
I am trying to set up my server to use chruby to manage rubies and have unicorn started from a rails app bundle.
service unicorn start works fine from a shell. /etc/init.d/unicorn is calling a chruby wrapper for unicorn that calls bundle exec unicorn.
During the init process, bundle exec fails unable to “re-resolve” dependencies before running unicorn. It appears that it can’t contact the gem sources to resolve things.
Can this be disabled or worked around somehow?
The message is:
Found changes from the lockfile, re-resolving dependencies because bundler is unlocking Could not find gem ‘blah’ in any of the gem sources listed in your Gemfile.
Any pointers would be greatly appreciated. Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @ryanbooker Have a look at these possible solutions: https://stackoverflow.com/questions/11513623/bundler-you-are-trying-to-install-in-deployment-mode-after-changing-your-gemfil
Adding BUNDLE_PATH directly to the app’s .bundle/config and re bundling, appears to have fixed the issue.
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.