Posts

Showing posts with the label sandbox

How to sandbox a rails application so that dependencies are installed locally without having to re-run bundle install

How to sandbox a rails application so that dependencies are installed locally without having to re-run bundle install I'm trying to sandbox a rails application so that i can port it over to other machines without having to re-bundle. Is there a way for rails to pull in dependencies locally to self-sustain? 1 Answer 1 All dependencies are stored in the Gemfile.lock. All gems stored in ruby directory. You can run once bundle install to create Gemfile.lock. Then save Gemefile.lock and pack a directory with gems. After it you can copy your pack to server and deploy you application. but if you move directory to a different environment, say docker, and say you don't have internet, you wouldn't be able to bundle install. – user2167582 Jun 30 at 13:34 ...