Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save daipresents/fc2ebedc3c2e4a53fbde369acd7c8c10 to your computer and use it in GitHub Desktop.

Select an option

Save daipresents/fc2ebedc3c2e4a53fbde369acd7c8c10 to your computer and use it in GitHub Desktop.
MacBook AirにSQLite+WEBRickで簡単にRedmineを動かす
sudo port install sqlite3
cp config/database.yml.example config/database.yml
vi config/database.yml
production:
adapter: sqlite3
database: db/redmine.db
timeout: 5000
development:
adapter: sqlite3
database: db/redmine.db
timeout: 5000
DEPRECATION WARNING: Please update config/database.yml to use 'database' instead of 'dbfile'. (called from parse_sqlite_config! at /Users/daipresents/Development/redmine/redmine-1.1.2/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:35)
gem install rack -v=1.0.1
gem install -v=0.4.2 i18n
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/daipresents/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Successfully installed i18n-0.4.2
1 gem installed
Installing ri documentation for i18n-0.4.2...
Installing RDoc documentation for i18n-0.4.2...
#セッションストア生成
rake config/initializers/session_store.rb
#DBを生成。
rake db:migrate RAILS_ENV="production"
#デフォルトデータ登録
rake redmine:load_default_data RAILS_ENV="production"
#WEBRick起動
ruby script/server webrick -e production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment