-
Notifications
You must be signed in to change notification settings - Fork 0
First Time Setup
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
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
Run rake db:setup on the server container to setup the DB from the seedfile:
$ docker-compose run --rm server rake db:setup
TODO
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 updatewill be run to ensure gems are up-to-date -
rake assets precompilewill be run to update any webpacker dependancies -
log/development.logwill be emptied - The puma server will be started
You can visit the server at http://localhost:3000 or http://lvh.me:3000