Created
May 11, 2016 06:51
-
-
Save daipresents/fc2ebedc3c2e4a53fbde369acd7c8c10 to your computer and use it in GitHub Desktop.
MacBook AirにSQLite+WEBRickで簡単にRedmineを動かす
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo port install sqlite3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cp config/database.yml.example config/database.yml | |
| vi config/database.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| production: | |
| adapter: sqlite3 | |
| database: db/redmine.db | |
| timeout: 5000 | |
| development: | |
| adapter: sqlite3 | |
| database: db/redmine.db | |
| timeout: 5000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem install rack -v=1.0.1 | |
| gem install -v=0.4.2 i18n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #セッションストア生成 | |
| 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