Created
June 3, 2016 21:09
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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