can bundler be used in rsync deployments?

后端 未结 3 1512
忘掉有多难
忘掉有多难 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:48

    Not a direct answer to your question, but you don't need admin privileges to install gems – you can install them locally to your app's location:

    bundle install --path vendor/bundle
    

    This would also isolate this app's environment from the other's, in regards to gems (i.e. the "system" gems are left in peace).

    Just remember to prepend every call to a gem with bundle exec.

    You might also want to look into rvm and its gemsets

提交回复
热议问题