On my server, I can start two services like this:
gunicorn -w 2 server:app1
gunicorn -w 4 server:app2
But this requires two lines of commands. Is there a method that I can use only one command to establish the serivces of app1
and app2
, where app1
has 2 workers and app2
has 4 workers?
Here both of app1
and app2
is expected to use same port.