Closed manu-chroma closed 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.
.env
host_frontend
port_frontend
host_backend
port_backend
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>
<host_backend>:<port_backend>
.gitignore
.env.copy
README
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>
.env
file should be put in.gitignore
and.env.copy
as a placeholder for it.README