I am running a Python Flask Restful web service. For the web container, I am using Gunicorn.
I want to be able to push updates to it by simply doing a "git pull origin master".
The problem is that my web service has parts in separate places.
1) I have a virtualenv / directory for the web app called myproject.
Inside it is:
--> wsgi.py which Gunicorn runs (it does from my-git-project.foobar import app)
--> my-git-project = the git repo that contains the code
2) I have a /etc/init.d/myproject.conf script that manages Gunicorn. I frequently update this as I learn how to best design the Gunicorn service to tailor my needs.
How do I structure this in a simple way? I hate the way I have it now.
A place to discuss the implementation and style of computer programs.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests