1
Fork 0

Use Honcho for process management

This commit is contained in:
Jake Howard 2018-08-12 20:18:31 +01:00
parent 864047d787
commit bfd43954f4
Signed by: jake
GPG Key ID: 57AFB45680EDD477
5 changed files with 13 additions and 2 deletions

View File

@ -31,6 +31,7 @@ COPY scripts/ /app/scripts/
COPY templates/ /app/templates/
COPY .sass-lint.yml /app/.sass-lint.yml
COPY .eslintrc /app/.eslintrc
COPY Procfile /app/Procfile
RUN BASE_URL= ./scripts/build-static.sh

View File

@ -16,6 +16,7 @@ waitress = "*"
wagtail-markdown = "*"
wagtail-metadata = "*"
"beautifulsoup4" = "*"
honcho = "*"
[dev-packages]
mypy = "*"

10
Pipfile.lock generated
View File

@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "c89669ea9aeaa3269a397dc2967827b2588bf9e443f70bfadd0cc35636c85f12"
"sha256": "7e5e4e6264138d1006434f06a80432b48823e721ad7628d1ef08cd7e5c107f71"
},
"pipfile-spec": 6,
"requires": {
@ -118,6 +118,14 @@
"index": "pypi",
"version": "==2.4.1"
},
"honcho": {
"hashes": [
"sha256:af5806bf13e3b20acdcb9ff8c0beb91eee6fe07393c3448dfad89667e6ac7576",
"sha256:c189402ad2e337777283c6a12d0f4f61dc6dd20c254c9a3a4af5087fc66cea6e"
],
"index": "pypi",
"version": "==1.0.1"
},
"html5lib": {
"hashes": [
"sha256:20b159aa3badc9d5ee8f5c647e5efd02ed2a66ab8d354930bd9ff139fc1dc0a3",

1
Procfile Normal file
View File

@ -0,0 +1 @@
web: python3 manage.py runserver 0.0.0.0:8000

View File

@ -22,7 +22,7 @@ services:
dockerfile: ./Dockerfile
stdin_open: true
tty: true
command: ./manage.py runserver 0.0.0.0:8000
command: honcho start
links:
- db:db
ports: