Search code examples
ruby-on-railssandbox

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?


Solution

  • 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.