I am trying to run a django app in background using gunicorn app.wsgi:application --bind=0.0.0.0:1312 --daemon. It's working on ubuntu terminal but not not if I try and run in jenkins. some 502 nginx error comes up:
(111: Connection refused) while connecting to upstream, client: 106.51.133.80, s
$.80, server: 0.0.0.0:1312, request: "GET / HTTP/1.1", upstream: "http://0.0.0.0:1312/", host: "0.0.0.0:81"