Skip to content

Commit

Permalink
updates the readme with notes on AWS deployment steps
Browse files Browse the repository at this point in the history
related #319
  • Loading branch information
emilyb7 committed Sep 1, 2017
1 parent f52efa5 commit 649803c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ FB_CLIENT_SECRET={ FACEBOOK_CLIENT_SECRET }
COOKIE_PASSWORD={ NICE_SECURE_PASSWORD }
GROW_DB_URL={ LINK_TO_POSTGRES_DB }
```

For our AWS production DB we now have a separate set of env variables, which can be used if you want to test locally but with the production DB instance.
```
RDS_HOSTNAME={ HOSTNAME }
RDS_PORT=5432
RDS_DB_NAME=growdb
RDS_USERNAME={ USERNAME }
RDS_PASSWORD={ PASSWORD }
```

The variable names differ from those set on Heroku in order to be consistent with RDS's own conventions.

* `node server/database/db_build.js`
* Run `npm start` and `npm run watch` simultaneously
* To test: `npm test`
Expand All @@ -58,3 +70,14 @@ GROW_DB_URL={ LINK_TO_POSTGRES_DB }
- SASS
- Tape
- CI with Travis

### AWS

In order to deploy to the production version of the app on AWS Elastic Beanstalk you will need at least one of the following:

- Access to the AWS console (requires login details)
- Credentials for the AWS / Elastic beanstalk CLI tool

Once you have access to the CLI, you can deploy with the command: `eb deploy grow-env`

In order to deploy faster, you can build the app locally, force add / commit the webpack bundle to source control (locally) and amend the `npm start command` to only start the server (i.e. remove the build step) before deploying

0 comments on commit 649803c

Please sign in to comment.