ShanshanHe / pmp

Smart project management tool made for teams to meet the deadlines
Apache License 2.0
4 stars 7 forks source link

Development or Production Mode #55

Open ManyAngledOne opened 5 years ago

ManyAngledOne commented 5 years ago

Determine whether or not the etabotsite server is being run in development or production mode in a platform independent way.

Currently etabotsite/settings.py checks if platform.system()=="Darwin" to determine if LOCAL_MODE should be set to True.

Possibly make this check if the host name is the host name of the production server? Or if there are multiple production servers something like checking if the host name conforms to some regular expression?

ShanshanHe commented 5 years ago

One thought that popped up in my mind is that, as we progress with Jenkins for CI/CD, we will have test or staging environment that's similar to the production environment. How would we distinguish them?