sudo apt-get install libmysql-ruby libmysqlclient-dev
sudo apt-get install postgresql
sudo apt-get install libpq-dev
gem install pg
apt-get install libmagickwand-dev
gem install rmagick
sudo apt-get install libsqlite3-dev
gem install sqlite3
git clone git://github.com/redmine/redmine.git
cd redmine
git checkout 1.4-stable
cp config/database.yml.example config/database.yml
# edit config/database.yml
bundle install
rake config/initializers/session_store.rb
heroku create
- remove from .gitignore these lines
/config/initializers/session_store.rb
/public/plugin_assets
/Gemfile.lock
/Gemfile.local
- configure heroku to run bundle install without sqlite group, otherwise it will fail
heroku config:add BUNDLE_WITHOUT="sqlite"
# edit Gemfile, comment sqlite groups
bundle install
git add Gemfile Gemfile.lock
git commit -m "remove sqlite gem from bundle"
- commit changes and push to Heroku
git add -A
git commit -m "changes for heroku"
git push heroku 1.4-stable:master
- migrate and populate database
heroku run rake db:migrate
heroku run rake redmine:load_default_data
No comments:
Post a Comment