ローカル、サーバともに。 Redmine入れます。 インストールまず、インスコ。
まだならば、Gem の準備。 $ export PATH=$PATH:$(ruby -r rubygems -e "puts(File.join(ENV['HOME'], \ '.gem', 'ruby', Gem::ConfigMap[:ruby_version], 'bin' ))") $ gem install --user-install bundler Bundler まずはソースの入手。 $ svn co http://redmine.rubyforge.org/svn/trunk/ redmine $ cd redmine/ これ、何だろう? bundle-install(1) - Install the dependencies specified in your Gemfile $ BUNDLE_PATH=~/.bundle bundle install --without development test プロジェクトごとならば、以下。こっちが好ましいだろう。 $ bundle install --path vendor/bundle gem の ”–user-install” に合わせるならば、以下。 $ bundle install --path ~/.gem/ 設定。 $ cp config/database.yml.example config/database.yml $ vi config/database.yml $ diff -uNr config/database.yml.example config/database.yml --- config/database.yml.example +++ config/database.yml @@ -3,12 +3,9 @@ # Examples for PostgreSQL and SQLite3 can be found at the end. production: - adapter: mysql - database: redmine - host: localhost - username: root - password: - encoding: utf8 + adapter: sqlite3 + database: db/redmine.db + timeout: 5000 development: adapter: mysql セッション何とか。 $ rake generate_secret_token $ GEM_HOME=~/.gem/ruby/1.8/ RAILS_ENV=production rake db:migrate $ GEM_HOME=~/.gem/ruby/1.8/ RAILS_ENV=production rake redmine:load_default_data #mkdir tmp public/plugin_assets #sudo chown -R redmine:redmine files log tmp public/plugin_assets #sudo chmod -R 755 files log tmp public/plugin_assets # ruby script/rails server webrick -e production 3000 番で、admin/admin。 ちゃんと環境Passenger, Mongrel (Webrick 代替 library) あるいは Unicorn。フロントで Apache や nginx。 ローカルテスト用だし、別にいいか…。 設定 |