Created
November 12, 2012 12:36
-
-
Save yaegashi/4059130 to your computer and use it in GitHub Desktop.
Set up a redmine instance with sub-uri: http://localhost:8080/redmine
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/sh -x | |
export RAILS_ENV=production | |
export REDMINE_LANG=ja | |
git clone https://github.com/redmine/redmine | |
cd redmine | |
rm config.ru | |
echo 'gem "unicorn"' >Gemfile.local | |
cat <<EOF >config/database.yml | |
$RAILS_ENV: | |
adapter: sqlite3 | |
database: db/$RAILS_ENV.sqlite3 | |
EOF | |
bundle install --path vendor/bundle --without "postgresql mysql rmagick" | |
bundle exec rake db:migrate | |
bundle exec rake redmine:load_default_data | |
bundle exec rake config/initializers/secret_token.rb | |
bundle exec unicorn_rails --path /redmine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment