From 54f5e36bb3573b0ae2fde003a3f1d6d74881150c Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Fri, 4 Feb 2022 17:29:15 +0000 Subject: [PATCH] Update readme to include migrate step --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9dfa57610..47db577a0 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,13 @@ Pre-requisites: 4. Run the database migrations:\ `rake db:migrate` -5. Install the frontend depenencies:\ +5. Seed the database if required:\ +`rake db:seed` + +6. Install the frontend depenencies:\ `yarn install` -6. Start the Rails server:\ +7. Start the Rails server:\ `bundle exec rails s` The Rails server will start on . @@ -42,10 +45,13 @@ The Rails server will start on . 1. Build the image:\ `docker-compose build` -2. Seed the database if required:\ +2. Run the database migrations:\ +`docker-compose run --rm app /bin/bash -c 'rake db:migrate'` + +3. Seed the database if required:\ `docker-compose run --rm app /bin/bash -c 'rake db:seed'` -3. To be able to debug with Pry run the app using:\ +4. To be able to debug with Pry run the app using:\ `docker-compose run --service-ports app` If this is not needed you can run `docker-compose up` as normal