make cleanup optional

This commit is contained in:
Christian Mehlmauer 2016-03-07 15:39:12 +01:00
parent 7ea3bbd4e0
commit a19b4e7529
No known key found for this signature in database
GPG key ID: DCF54A05D6E62591
2 changed files with 6 additions and 1 deletions

View file

@ -64,7 +64,7 @@ sudo -u git -H bundle install --without postgres development test --deployment
# PostgreSQL installations (note: the line below states '--without mysql')
sudo -u git -H bundle install --without mysql development test --deployment
# Clean up old gems
# Optional: clean up old gems
sudo -u git -H bundle clean
# Run database migrations

View file

@ -62,8 +62,13 @@ sudo -u git -H bundle install --without development test mysql --deployment
# MySQL
sudo -u git -H bundle install --without development test postgres --deployment
# Optional: clean up old gems
sudo -u git -H bundle clean
# Run database migrations
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
# Clean up assets and cache
sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
```