2

私は次のprocfileを持っています:

web: gunicorn application:app --config=gunicorn_config.py

これを使用して実行するとforeman startすべて正常に動作しますが、 を使用してコンテナ内でこれを実行するdocker-compose up webと、

web_1        | usage: gunicorn [OPTIONS] [APP_MODULE]
web_1        | gunicorn: error: No application module specified.

コンテナを構築するために使用しているプロセスは、Heroku のドッカー ガイドで指定されているとおりです。

1. `heroku docker:init` to set up Dockerfile and docker compose configuration.
2. `docker-compose build` to create the image.
3. I always do a restart of my vm for good measure:  `docker-machine restart default && eval "$(docker-machine env default)"
4

1 に答える 1