cp config/database.yml.skel config/database.yml- Update 'password' field to
datainconfig/database.ymlfor all the databases - Comment out the 'socket' fields, and add a 'host' field for all the databases
- Set 'host' fields to
db cp config/initializers/devise.rb.example config/initializers/devise.rbtouch config/initializers/secret_token.rb- Add
TheCourseForum::Application.config.secret_key_base = "othersecretkey1234"inconfig/initializers/secret_token.rb cp config/application.yml.example config/application.yml- Login to http://phpmyadmin.thecourseforum.com/ (ask for username & password)
- Once you're logged in, expand
thecourseforumtab on the left - Export the
thecourseforum_developmentandthecourseforum_productiondatabases - Place these
.sqlfiles within this./sql/directory - If you want to use the copy of the production database for development, run
cp sql/thecourseforum_production.sql sql/thecourseforum_development.sql docker-compose upThis might take a few minutes...- The server will be listening on
localhost:3000(Note: if you are using docker toolkit, you might have get the ip address of the docker vm using 'docker-machine ip' and replacing localhost with that address) - Once it finishes, you are ready to develop! :)
docker-compose up It's that easy :-)