RJones92 / MiniGolfScoreCard

1 stars 0 forks source link

Add production db - update application.properties file #44

Closed RJones92 closed 3 years ago

RJones92 commented 3 years ago

2 files: application.properties and application-dev.properties? One to define each db. How do I make sure that application-dev.properties is the one being used in development, but the other is the one being used in Production. I'm guessing it's environment variables...perhaps this is something I can set up when I get it building with circle CI. So maybe should do this first. Don't want production DB details on public github, e.g. username and passwords!

DB notes: MySQL commands: https://dev.mysql.com/doc/mysql-getting-started/en/ Using MySQL with Spring: https://spring.io/guides/gs/accessing-data-mysql/

RJones92 commented 3 years ago

Environment variable did the job