cmciosu / hemp-db

https://hempdb.vercel.app/
MIT License
1 stars 1 forks source link

Development DB for Local Development #42

Closed paullpp closed 6 months ago

paullpp commented 7 months ago

We've been using the same database for production and local development, which can cause issues when making changes to the DB locally, and migrating those changes before deploying your code to production.

To circumvent that we'll need to set up a database for development. This doesn't have to be hosted in the cloud, we can spin up a mysql image in docker, and initialize it to be an empty version of our production database

meithofdOSU commented 6 months ago

Local DB setup for development. To change the database for local development go to the .env file and change the MYSQL_Name = local_db.