My app uses Python
with cherrypy
to provide a web service. I want to set up a different config file, depending on if my application is started on my local machine or on my remote server.
Is there any easy way to check if my application is started from the server or on my local machine? If not, maybe I could pass some parameters, when running python myApp.py
, which myApp.py
will then be passed to myApp.py
? Of course an automatic solution would be nicer.