動作
如何在 Heroku 上安裝 Redmine¶
- 在本地端安裝 Redmine
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 應用程式
heroku create
- 從 .gitignore 中移除這些行
/config/initializers/session_store.rb /public/plugin_assets /Gemfile.lock /Gemfile.local
- 設定 heroku 以在沒有 sqlite 群組的情況下執行 bundle install,否則將會失敗
heroku config:add BUNDLE_WITHOUT="sqlite"
- 似乎 Heroku cedar 堆疊 仍然不支援 BUNDLE_WITHOUT,所以我們必須在 Gemfile 中將 sqlite 群組註解掉
# edit Gemfile, comment sqlite groups bundle install git add Gemfile Gemfile.lock git commit -m "remove sqlite gem from bundle"
- 提交變更並推送至 Heroku
git add -A git commit -m "changes for heroku" git push heroku 1.4-stable:master
- 遷移並填充資料庫
heroku run rake db:migrate heroku run rake redmine:load_default_data
(來源:http://lluisgili.heroku.com/lluis/published/redmine+on+heroku)
由 Lluís Gili 於 將近 12 年前更新 · 1 個版本