Skip to content

Instantly share code, notes, and snippets.

@WISHPRO
Created May 17, 2016 08:06
Show Gist options
  • Save WISHPRO/0e7c86d12ec681c886c4490704e7d079 to your computer and use it in GitHub Desktop.
Save WISHPRO/0e7c86d12ec681c886c4490704e7d079 to your computer and use it in GitHub Desktop.
bn_redmine sh
#!/bin/sh
# Author: Vitaliy Ectb
bundle exec rake time:zones:all RAILS_ENV=production
#!/bin/sh
# Author: Vitaliy Ectb
#ruby bin/rake db:migrate_plugins:migrate PLUGIN=$* VERSION=0 RAILS_ENV=production
#rake redmine:plugins:migrate NAME=$* VERSION=0 RAILS_ENV=production
#mkdir -p /opt/bitnami/apps/redmine/htdocs/plugins.inactive
mv /opt/bitnami/apps/redmine/htdocs/plugins.inactive/$* /opt/bitnami/apps/redmine/htdocs/plugins/
bundle install --without development test postgresql sqlite
bundle exec rake redmine:plugins:migrate NAME=$* RAILS_ENV=production
#ruby bin/rake redmine:plugins:migrate NAME=$* RAILS_ENV=production
#!/bin/sh
# Author: Vitaliy Ectb
#ruby bin/rake db:migrate_plugins:migrate PLUGIN=$* VERSION=0 RAILS_ENV=production
rake redmine:plugins:migrate NAME=$* VERSION=0 RAILS_ENV=production
mkdir -p /opt/bitnami/apps/redmine/htdocs/plugins.inactive
mv /opt/bitnami/apps/redmine/htdocs/plugins/$* /opt/bitnami/apps/redmine/htdocs/plugins.inactive/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment