You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sam Rust edited this page Dec 3, 2019
·
2 revisions
Downloading the Code and Environment
Pull down the roadmap_dev_env repo: $ git clone https://github.com/DigitalCurationCentre/roadmap_dev_env.git
Switch to the newly created directory: $ cd roadmap_dev_env
Checkout the update_setup branch: $ git checkout update_setup
Initialize the roadmap sub-module: $ git submodule update --init --recursive
This will pull in the DMPRoadmap/roadmap repository
Finally, move into the roadmap directory and checkout the development branch $ cd roadmap $ git checkout development
Environment Setup
Build the Dockerfile for the server $ docker-compose build server
Install the gem dependancies for the roadmap codebase $ docker-compose run --rm server bundle install
This will take a little while to run the first time
Database Population
From the Seedfile
Run rake db:setup on the server container to setup the DB from the seedfile: $ docker-compose run --rm server rake db:setup
From a Database Dump
TODO
Run the server
The server can be either run with the puma(webserver) logs outputting $ docker-compose up
Or daemonized, by adding the -d flag
When starting up:
bundle update will be run to ensure gems are up-to-date
rake assets precompile will be run to update any webpacker dependancies