mirror of https://github.com/snachodog/mybuddy.git
Add Amazon EB deployment instructions to the README.
This commit is contained in:
parent
65c46351cb
commit
db4a1b247a
45
README.md
45
README.md
|
@ -16,8 +16,9 @@ work.
|
||||||
|
|
||||||
- [Demo](#demo)
|
- [Demo](#demo)
|
||||||
- [Deployment](#deployment)
|
- [Deployment](#deployment)
|
||||||
- [Heroku](#heroku)
|
- [AWS Elastic Beanstalk](#aws-elastic-beanstalk)
|
||||||
- [Nanobox](#nanobox)
|
- [Nanobox](#nanobox)
|
||||||
|
- [Heroku](#heroku)
|
||||||
- [Development](#development)
|
- [Development](#development)
|
||||||
- [Installation](#installation)
|
- [Installation](#installation)
|
||||||
- [Fake data](#fake-data)
|
- [Fake data](#fake-data)
|
||||||
|
@ -39,15 +40,35 @@ stable production deployment flow. :warning:**
|
||||||
The default user name and password for Baby Buddy is `admin`/`admin`. For any
|
The default user name and password for Baby Buddy is `admin`/`admin`. For any
|
||||||
deployment, **log in and change the default password immediately**.
|
deployment, **log in and change the default password immediately**.
|
||||||
|
|
||||||
### Heroku
|
### AWS Elastic Beanstalk
|
||||||
|
|
||||||
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
|
A basic [Elastic Beanstalk](https://aws.amazon.com/elasticbeanstalk/)
|
||||||
|
configuration is provided in `.ebextensions\babybuddy.config`. The steps
|
||||||
|
below are a rough guide to deployment. See [Working with Python](http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-apps.html)
|
||||||
|
for detailed information.
|
||||||
|
|
||||||
For manual deployments to Heroku without using the deploy button, make sure to
|
1. Clone/download the Baby Buddy repo
|
||||||
create two settings before pushing using `heroku config:set`:
|
|
||||||
|
|
||||||
heroku config:set DJANGO_SETTINGS_MODULE=babybuddy.settings.heroku
|
git clone https://github.com/cdubz/babybuddy.git
|
||||||
heroku config:set SECRET_KEY=<CHANGE TO SOMETHING RANDOM>
|
|
||||||
|
1. Enter the cloned/downloaded directory
|
||||||
|
|
||||||
|
cd babybuddy
|
||||||
|
|
||||||
|
1. Change the `SECREY_KEY` value to something random in `.ebextensions\babybuddy.config`
|
||||||
|
|
||||||
|
1. [Create an IAM user](http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html) in AWS with EB, EC2, RDS and S3 privileges.
|
||||||
|
|
||||||
|
1. Initialize the Elastic Bean application (using the IAM user from the previous step)
|
||||||
|
|
||||||
|
eb init
|
||||||
|
|
||||||
|
1. Create/deploy the environment! :rocket:
|
||||||
|
|
||||||
|
eb create -db -db.engine postgres
|
||||||
|
|
||||||
|
The create command will also do an initial deployment. Run `eb deploy` to
|
||||||
|
redeploy the app (e.g. if there are errors or settings are changed).
|
||||||
|
|
||||||
### Nanobox
|
### Nanobox
|
||||||
|
|
||||||
|
@ -73,6 +94,16 @@ for detailed information about Nanobox's deployment and configuration process.
|
||||||
|
|
||||||
nanobox deploy
|
nanobox deploy
|
||||||
|
|
||||||
|
### Heroku
|
||||||
|
|
||||||
|
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
|
||||||
|
|
||||||
|
For manual deployments to Heroku without using the deploy button, make sure to
|
||||||
|
create two settings before pushing using `heroku config:set`:
|
||||||
|
|
||||||
|
heroku config:set DJANGO_SETTINGS_MODULE=babybuddy.settings.heroku
|
||||||
|
heroku config:set SECRET_KEY=<CHANGE TO SOMETHING RANDOM>
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
Loading…
Reference in New Issue