Tag: 工头

docker与工头

无论如何阻止我的容器退出与领class运行我的Rails服务器。 当工头做它的事情,并启动我的轨服务器和sidekiq它立即退出与退出代码0预期。 有什么办法来防止这种行为,并保持容器运行?

在heroku docker里面运行gunicorn

我有以下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. 我用来构build容器的过程与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 […]