Skip to content

Instantly share code, notes, and snippets.

@douhashi
Created November 23, 2015 09:52
Show Gist options
  • Save douhashi/bf7b7a8129f248de34d0 to your computer and use it in GitHub Desktop.
Save douhashi/bf7b7a8129f248de34d0 to your computer and use it in GitHub Desktop.
Redmineをアップグレードしやすくするscript
#!/bin/sh
REDMINE_ROOT=/var/rails/redmine
RAILS_ENV=production
cd $REDMINE_ROOT
bundle install --without development test --path vendor/bundle
bundle exec rake db:migrate RAILS_ENV=$RAILS_ENV
bundle exec rake redmine:plugins:migrate RAILS_ENV=$RAILS_ENV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment