Skip to content

Instantly share code, notes, and snippets.

@guiwoda
Created January 15, 2014 19:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save guiwoda/8443360 to your computer and use it in GitHub Desktop.
Save guiwoda/8443360 to your computer and use it in GitHub Desktop.
cd /var/www
mv railsapp railsapp-old
hg clone --updaterev 2.0-stable https://bitbucket.org/redmine/redmine-all railsapp
cp railsapp-old/config/email.yml railsapp/config/configuration.yml
cp railsapp-old/config/database.yml railsapp/config/database.yml
cp -r railsapp-old/files/ railsapp/files/
chown -R root:www-data /var/www/railsapp
cd railsapp
gem install bundler
gem install test-unit
bundle install --without development test rmagick
mkdir public/plugin_assets
rake generate_session_store
rake db:migrate RAILS_ENV=production
chown -R www-data:www-data files log tmp public/plugin_assets
rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production
rake db:migrate_plugins RAILS_ENV=production
chmod -R 755 files log/ tmp/ public/plugin_assets
rake tmp:cache:clear
rake tmp:sessions:clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment