Skip to content

Instantly share code, notes, and snippets.

View charusat09's full-sized avatar

Mayurkumar charusat09

View GitHub Profile
@charusat09
charusat09 / deploy.rb
Last active October 23, 2019 00:24 — forked from dsandstrom/deploy.rb
Compile assets locally with capistrano 3.5.0 and rails 4.2.x (Nginx-Unicorn zero downtime)
# Runs rake assets:clean
# Defaults to nil (no asset cleanup is performed)
# If you use Rails 4+ and you'd like to clean up old assets after each deploy,
# set this to the number of versions to keep
set :keep_assets, 2
set :user, 'ubuntu'
set :pem_file, %w(/home/mayur/.ssh/pem/dev.pem)
set :ssh_options, {