janpaul123 / paperprograms

Run Javascript on pieces of paper!
https://paperprograms.org
MIT License
498 stars 54 forks source link

Make db for development and docker configurable with env variable #60

Closed paulsonnentag closed 6 years ago

paulsonnentag commented 6 years ago

It would be nice to make the connection url for development and docker configurable as well. Before we had 2 databases for development and production. This had the disadvantage, that when you switch to development all the papers in production stop working. Reading the connection url from the environment variables and using the default local db as a fallback would allow us to use any db in development without breaking the current setup.

janpaul123 commented 6 years ago

Makes sense!