From bce0c1a36446357578e9ebd0c597fc980d977b85 Mon Sep 17 00:00:00 2001 From: Lachlan-C <52726897+Lachlan-C@users.noreply.github.com> Date: Sat, 24 Sep 2022 16:27:19 +1000 Subject: [PATCH] docs: Improve production deployment documentation --- DEPLOYING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DEPLOYING.md b/DEPLOYING.md index af25d65..7fda39d 100644 --- a/DEPLOYING.md +++ b/DEPLOYING.md @@ -84,7 +84,8 @@ The setups to configure these components include: 6. Configure email settings: - Edit **shared-files/aliases** to map the root user email to the support email address that the application will use. - Edit **shared-files/msmtprc** to include the necessary details used to connect to your mail server. -7. Initialise the database by running: +7. Access the apiserver docker container by runing the command "docker exec -it bash" to launch a Bash terminal within the container. +8. Initialise the database by running the following command within the apiserver docker container: - `DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rake db:setup db:init`. When prompted about running in production, respond with `Yes` (case sensitive) to allow the database initialisation to proceed. - Verify the database setup in the rails console `bundle exec rails c`, and update username and email to match expected admin user: