forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 0
SettingUpSQLite
Benjamin Vialle edited this page May 15, 2011
·
5 revisions
On Debian and Ubuntu, a simple
#> aptitude install sqlite3 libsqlite3-dev
Everything is already bundle inside Mac OS X.
If you are using SQLite3, save the following text as config/database.yml (in the MarkUs root directory):
# SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: sqlite3 database: db/test.sqlite3 pool: 5 timeout: 5000 production: adapter: sqlite3 database: db/production.sqlite3 pool: 5 timeout: 5000
If you are using PostgreSQL, enter the following command (from the MarkUs root directory):
#>cp config/database.yml.postgresql config/database.yml
If you are using MySQL, enter the following command (from the MarkUs root directory):
#>cp config/database.yml.mysql config/database.yml
You can then uncomment the "development" section of <code>config/database.yml</code>.
Now go back to the MarkUs tutorial :
- Installation on GNU/Linux
- Installation on Mac OS X
- Development environment
- Production (need to be done)
- Installation on Windows