Skip to content

Instantly share code, notes, and snippets.

@yaegashi
Created November 12, 2012 12:36
Show Gist options
  • Save yaegashi/4059130 to your computer and use it in GitHub Desktop.
Save yaegashi/4059130 to your computer and use it in GitHub Desktop.
Set up a redmine instance with sub-uri: http://localhost:8080/redmine
#!/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