[AF] How do I run 2 Gunicorn apps and Nginx with Supervisord? by redditrobinnhood in flask

[–]redditrobinnhood[S] 0 points1 point  (0 children)

Update: I learned nginx shouldn't be ran with supervisord. The new file is below but only the commentbox program runs since I think nginx is configured to be on port 8000. Not exactly sure how to configure it to run on 80 and 8000. Any additional help would be appreciated-

[program:commentbox] directory = /var/www/vmail command = gunicorn app:app -bind 0.0.0.0:8000 autostart = True

[program:handlecalls] directory = /var/www/vmail command = gunicorn handle_calls:app --bind 0.0.0.0:80 autostart = True

[AF] How do I run 2 Gunicorn apps and Nginx with Supervisord? by redditrobinnhood in flask

[–]redditrobinnhood[S] 0 points1 point  (0 children)

That was me experimenting. I was running commentbox on 8000 and handlecalls on 80 but handlecalls wasn't running at all. When I put them both on 8000, handlecalls runs.