setting up an EC2 server with rvm via scripting

≡放荡痞女 提交于 2019-12-06 07:21:33

Check RVM site for Capistrano integration https://rvm.io/integration/capistrano

There are tasks to install RVM and Ruby:

after 'deploy:setup', 'ubuntu:install'
after 'deploy:setup', 'rvm:install_rvm' # do it only with deploy setup
before 'deploy', 'rvm:install_ruby'     # do it on every deploy
namespace :ubuntu do
  desc "setup ubuntu system"
  task :install do
    run "apt-get install -y make ...", :shell => "sh"
    ...
  end
end

And you run the standard:

cap deploy:setup
cap deploy:cold

Also you might want to have a look on my example rails app for simple and working deployment script: https://github.com/mpapis/ad and my blog post about it: http://niczsoft.com/2012/03/fast-deployment-using-capistrano-rvm-and-more/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!