manu-chroma / username-availability-checker

Live at : https://username-check.herokuapp.com/
96 stars 37 forks source link

setup .env file to differentiate between dev and prod env #30

Closed manu-chroma closed 6 years ago

manu-chroma commented 6 years ago

To differentiate between the production and dev environment, create an .env file containing the following: host_frontend, port_frontend, host_backend, port_backend and use them when running flask servers.

Eg: When testing changes, we need to change the url at: https://github.com/manu-chroma/username-availability-checker/blob/master/templates/status.html#L28 to <host_backend>:<port_backend>