LoginSignup
12
12

More than 5 years have passed since last update.

Redmine on MOGOK

Last updated at Posted at 2013-01-13

RedmineをRubyのPaaSのMOGOKで使いました。
MOGOKのアプリケーションカタログでもRedmineは
簡単にインストールできますが
今回は、CLI(コマンドライン)の手順を紹介します。

(アプリケーションカタログにJoruriを発見!)

Usage

5分程度の作業時間でRedmineをパブリックで利用することができます。

Install

herokuコマンドと同様のmogokコマンドで操作します。

$ gem install bundler
$ gem install mogok

Download & Configure

MOGOKでrake generate_secret_tokenでファイルが作成されませんので
./config/initializers/secret_token.rbをリポジトリに含めます。
(MOGOKにはdatabase.ymlは不要ですが、ローカルでの確認で利用します。)

$ git clone https://github.com/redmine/redmine.git
$ cd redmine/
$ sed -i.bak 's/\/config\/initializers\/secret_token.rb/#\/config\/initializers\/secret_token.rb/g' .gitignore
$ cat << __EOS__ > ./config/database.yml
development:
  adapter: sqlite3
  database: db/development.sqlite3
__EOS__
$ rm .gitignore.bak

Bundler

http://localhost:3000/にアクセスしてRedmineの動作を確認します。

$ bundle install --path=.bundle --without test production mysql postgresql rmagick
$ bundle exec rake generate_secret_token
$ bundle exec rake db:migrate
$ bundle exec rake redmine:load_default_data REDMINE_LANG=en
$ bundle exec rails server

Deploy

http://redmine250.ruby.iijgio.com/にアクセスしてRedmineを使用します。
(httpsでもアクセスすることができます。)

$ mogok create redmine250
$ git add ./config/initializers/secret_token.rb
$ git commit -am "prepare for mogok"
$ git push mogok master
$ mogok build
$ mogok rake db:migrate
$ mogok rake redmine:load_default_data REDMINE_LANG=en
$ mogok start

Tips

デフォルト管理アカウント

  • username - admin
  • password - admin

デフォルトの管理アカウントは変更しましょう!

12
12
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
12