0
アプリケーション用にgunicornを実行しようとしていますが、リモートサーバーや他のツールからは実行できません。しかし、サーバーにログインしてbashからスクリプトを実行しようとすると、正常に動作します。私もsupervisordを試しましたが、同じエラーが発生しました。私が欠けているものはありますか?Gunicorn:リモートサーバーから起動できません
ssh -t [email protected] << EOF
bash /home/ubuntu/code/xyz/gunicorn_start2
EOF
gunicorn_start2
#!/bin/sh
export PROJECT_ENV="dev"
exec /home/ubuntu/code/xyz xyz.wsgi:application --name xyz --workers 4 --user=ubuntu --timeout=3600 --debug --log-level debug --daemon
を試してみてください、あなたが同じユーザーで毎回それを実行よろしいですか? – Arount
はい、このスクリプトを実行する前にgunicornプロセスを終了しています。 –