Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
を実行ssh ubuntu@myapp.comし、アプリの django ディレクトリに変更してから を実行しますps | aux less。コマンドに python を含むプロセスが表示されません。バックグラウンドで実行されているdjangoサーバーを再起動するにはどうすればよいですか?
ssh ubuntu@myapp.com
ps | aux less
Django サーバーをどのように実行しているかによって異なります。Django サーバーを Apache で実行するように設定すると、sudo service apache2 restartうまくいきます。
sudo service apache2 restart
テスト サーバー ( manage.py runserver) を実行している場合は、 を使用fgしてジョブをフォアグラウンドに移動し、それをいじることができますが、Django 開発サーバーが自動的に変更を検出します (再起動する必要はありません)。
manage.py runserver
fg