Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
First, have an rsync_exclude file:
// my-rails-app/.rsync_exclude
Run in localhost:
$ bundle exec rake assets:precompile
$ rsync -a --delete --stats --progress --exclude-from='./.rsync_exclude' ./
Run in production server:
$ rvm use ruby-2.2.2
$ cd ~/your-rails-folder
$ bundle install --without development test
$ rake db:migrate RAILS_ENV="production"
// If needed:
$ RAILS_ENV=production bundle exec rake assets:precompile
Restart server:
$ killall -USR1 dispatch.fcgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.