Skip to content

Completely set up a Ruby environment on an ubuntu machine with capistrano

License

Notifications You must be signed in to change notification settings

bakku/capistrano-ubuntu-ruby-setup

Repository files navigation

Capistrano Ubuntu Ruby Setup

When initially deploying you should not have to install prerequisites to use Ruby but let the automatic deployment take care of this. This gem let's you install Ruby from scratch using Rbenv under the hood.

Installation

Add these gems to your application's Gemfile:

gem 'capistrano', '~> 3.6'
gem 'capistrano-rbenv', '~> 2.0'
gem 'capistrano-ubuntu-ruby-setup'

And then execute:

$ bundle

Setup your deploy.rb according to capistrano-rbenv and add the following requires to your Capfile:

require 'capistrano/rbenv'
require 'capistrano/rbenv_install'
require 'sshkit/sudo'
require 'capistrano/ubuntu_ruby_setup'

Run bundle exec cap <environment> deploy and profit.

License

The gem is available as open source under the terms of the MIT License.

About

Completely set up a Ruby environment on an ubuntu machine with capistrano

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages