can bundler be used in rsync deployments?

后端 未结 3 1482
忘掉有多难
忘掉有多难 2021-01-15 03:55

Can you deploy a Rails3 app using Bundler\'s Gemfile WITHOUT running bundle install... i.e. just by copying a rails project directory to the appropriate

3条回答
  •  遥遥无期
    2021-01-15 04:57

    Yes, you can. You have to find a machine with the exact same OS/architecture combination as your production servers, and then run bundle install --deployment on it. Once you've done that, you can copy the entire app directory (including ./vendor/bundle, which contains all the installed gems). Since the gems are all already installed and compiled, your app will just boot.

    That said, this is officially unsupported. If you have issues with the approach, while the Bundler team will try to help you, there are no guarantees it will work (or keep working into the future). Here thar be dragons, etc., etc.

提交回复
热议问题