Version 1/26
-
Next ยป -
Current version
Matthew Sears, 10/05/2011 07:52 pm
Development Setup¶
The following instructions are meant to help get the ODE application up and running on your local workstation.
Code checkout¶
To get started, create a local repository with svn checkout:
svn checkout https://opendesignengine.net/svn/ode/trunk
Create Development Database¶
You will need to setup a local development MySQL database and call 'ode_development'. Next we need to create a new database.yml so the application knows how to connect to the database. To accomplish this, simple copy the database.yml.exampe file:
cp config/database.yml.example confit/database.yml
Under the production: section of the the config fill, fill in the database name, username, and password.
Bundler¶
To install the required third-party gems to run the ODE application, we run the following Bundler command:
bundle install
Note: you will need to install Bundler first (gem install bundler)
Database Preparation¶
To prepare the database, we first need to run migrations:
RAILS_ENV=production rake db:migrate
We now need some seed data to get started:
RAILS_ENV=production rake db:seed
Running the Application¶
Now we should be ready to run the application locally:
RAILS_ENV=production script/server
If all goes well, you should be able to open the application at http://localhost:3000