Skip to content
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
  • log/development.log will be emptied
  • The puma server will be started

You can visit the server at http://localhost:3000 or http://lvh.me:3000