From 6028942fb8952626ff8e5da404a85f1daa5f8026 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Mon, 20 Jun 2016 08:20:43 +0800 Subject: [PATCH] annoying doc updates --- doc/production/first-deploy.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/doc/production/first-deploy.md b/doc/production/first-deploy.md index 302ed25f..630ac7ce 100644 --- a/doc/production/first-deploy.md +++ b/doc/production/first-deploy.md @@ -47,10 +47,17 @@ Run this in the metamaps directory, still as metamaps: + # fill in DB_* values, and realtime server at least. Change the + # SECRET_KEY_BASE to something new. Ctrl+X to save/exit from nano. cp .example-env .env - nano .env # fill in DB_* values, and realtime server at least. Ctrl+X to save/exit. + nano .env + + # Set up environment variables in your current session + source .env export RAILS_ENV=production - rake db:setup #create, load schema, seed + + # create, load schema, seed + rake db:setup Now set up nginx - config stored on Linode, including relevant environment variables. @@ -61,8 +68,8 @@ Get an SSL certificate and encrypt it for the realtime video. passenger-config restart-app /home/metamaps/metamaps -If this command fails, it may be helpful for debugging to run a test server to -see what problems show up: +If this command fails, it may be helpful for debugging to run a test +server to see what problems show up: RAILS_ENV=production rails server