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.
このスタックを使用すると、django コンプレッサーと静的ファイルが少ないという問題が発生します。nginx の背後で django dev サーバーを実行しても問題はありません。gunicorn を試すと、gunicorn から以下のファイルが見つからないというエラーが表示されます。gunicorn が静的ファイルを探すのはなぜですか?
gunicorn の静的ファイルもどうにかしてマップする必要があります。uwsgi では、ディレクティブは次のようになります。
static-map /static=/var/www/your-project/static
問題は、ルートが Nginx レベルにしか存在しないため、Gunicorn が静的ファイル自体にアクセスできないことだと思います。ファイルの場所を指定する必要があります。