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 templates/ /app/templates/
COPY .sass-lint.yml /app/.sass-lint.yml COPY .sass-lint.yml /app/.sass-lint.yml
COPY .eslintrc /app/.eslintrc COPY .eslintrc /app/.eslintrc
COPY Procfile /app/Procfile
RUN BASE_URL= ./scripts/build-static.sh RUN BASE_URL= ./scripts/build-static.sh

View file

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

10
Pipfile.lock generated
View file

@ -1,7 +1,7 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "c89669ea9aeaa3269a397dc2967827b2588bf9e443f70bfadd0cc35636c85f12" "sha256": "7e5e4e6264138d1006434f06a80432b48823e721ad7628d1ef08cd7e5c107f71"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
@ -118,6 +118,14 @@
"index": "pypi", "index": "pypi",
"version": "==2.4.1" "version": "==2.4.1"
}, },
"honcho": {
"hashes": [
"sha256:af5806bf13e3b20acdcb9ff8c0beb91eee6fe07393c3448dfad89667e6ac7576",
"sha256:c189402ad2e337777283c6a12d0f4f61dc6dd20c254c9a3a4af5087fc66cea6e"
],
"index": "pypi",
"version": "==1.0.1"
},
"html5lib": { "html5lib": {
"hashes": [ "hashes": [
"sha256:20b159aa3badc9d5ee8f5c647e5efd02ed2a66ab8d354930bd9ff139fc1dc0a3", "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 dockerfile: ./Dockerfile
stdin_open: true stdin_open: true
tty: true tty: true
command: ./manage.py runserver 0.0.0.0:8000 command: honcho start
links: links:
- db:db - db:db
ports: ports: