Skip to content

Commit

Permalink
Merge pull request makersacademy#35 from makersacademy/update-deploym…
Browse files Browse the repository at this point in the history
…ent-advice

Adds detail to deployment section re: env config
  • Loading branch information
EdwardAndress committed Dec 18, 2018
2 parents c01759a + 0997427 commit 2d61d35
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ Flyway is being used to manage your database migrations. Use the flyway docs to

### Deployment

- the template is currently hosted on heroku at https://springboot-react-template.herokuapp.com/
- Remember to set the right profile in your `application.properties` file eg: `spring.profiles.active=dev` for when you want to use your dev environment, and when you want to use your prod environment.
- This template application is hosted on heroku at https://springboot-react-template.herokuapp.com/
- Have a look at `application.properties`, `application-dev.properties` and `application-prod.properties`
- The first line in `application.properties` specifies that the application is run using the config in `application-dev.properties`.
- The config in `application-dev.properties` specifies that the development datebase be used.
- This ensures that you do not manipulate the production database whilst developing new features.
- Before deploying your application, you'll need to add some config to `application-prod.properties` so that the deployed application uses the production database.
- Then, make sure the deployed app will use `application-prod.properties` by using `spring.profiles.active=dev` in your deployment script.

### CI

Expand Down

0 comments on commit 2d61d35

Please sign in to comment.