Skip to content

Instantly share code, notes, and snippets.

@tofi86
Created June 3, 2016 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tofi86/b0f1bd348c03dbba791c018e64417338 to your computer and use it in GitHub Desktop.
Save tofi86/b0f1bd348c03dbba791c018e64417338 to your computer and use it in GitHub Desktop.
A tiny script to run latest Redmine Trunk version in a local development environment
#!/bin/bash
# Author: Tobias Fischer (https://github.com/tofi86)
# Date: 2016-06-03
echo "# starting MySQL server..."
mysql.server start
echo "# fetching latest updates to Redmine trunk"
git checkout master
git pull
echo "# running migrations for latest Redmine trunk"
bundle update
bundle exec rake db:migrate RAILS_ENV=development
bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=development
echo "# starting Rails webserver...."
ruby bin/rails server webrick -p3001 -e development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment