-
-
Save dgmike/3815866 to your computer and use it in GitHub Desktop.
redmine installer
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
# add database 'redmine' and user 'redmine' to mysql | |
aptitude -y install ruby libruby libopenssl-ruby libpgsql-ruby rubygems apache2 libapache2-mod-passenger | |
aptitude -y install subversion | |
aptitude -y install install libmysql-ruby libmysqlclient-dev | |
aptitude install libpq-dev libsqlite3-dev libmagick9-dev graphicsmagick-libmagick-dev-compat | |
cd /var/www | |
svn co http://redmine.rubyforge.org/svn/branches/2.0-stable redmine | |
cd redmine | |
cp config/database.yml.example config/database.yml | |
vim config/database.yml | |
gem install rails -v 2.3.14 | |
gem install rake -v 0.8.7 | |
gem uninstall rake -v 0.9.2.2 | |
gem install i18n | |
gem install mysql | |
gem install bundler | |
/var/lib/gems/1.8/bin/bundle install | |
cd /var/www/redmine | |
/var/lib/gems/1.8/bin/rake generate_secret_token --trace | |
pwgen -s 1 1 | |
vim config/database.yml | |
RAILS_ENV=production /var/lib/gems/1.8/bin/rake db:migrate | |
RAILS_ENV=production /var/lib/gems/1.8/bin/rake redmine:load_default_data | |
chown -R www-data:www-data ./* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment