From c4c2b95e86a37ca8e4d396c1a6ecf56631652cf0 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 15 May 2016 21:22:02 +0100 Subject: [PATCH] Create development server --- etc/environments/deployment/env | 3 --- etc/environments/deployment/procfile | 1 - etc/environments/development/env | 2 -- etc/environments/development/procfile | 4 ++-- scripts/server.sh | 4 ++++ 5 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 etc/environments/deployment/env delete mode 100644 etc/environments/deployment/procfile delete mode 100644 etc/environments/development/env create mode 100644 scripts/server.sh diff --git a/etc/environments/deployment/env b/etc/environments/deployment/env deleted file mode 100644 index 0c8ddc0..0000000 --- a/etc/environments/deployment/env +++ /dev/null @@ -1,3 +0,0 @@ -DEBUG=false -EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend -BUILD_PRODUCTION=true diff --git a/etc/environments/deployment/procfile b/etc/environments/deployment/procfile deleted file mode 100644 index c90b8d4..0000000 --- a/etc/environments/deployment/procfile +++ /dev/null @@ -1 +0,0 @@ -web: waitress-serve --port $PORT project.wsgi:application diff --git a/etc/environments/development/env b/etc/environments/development/env deleted file mode 100644 index 9204e2e..0000000 --- a/etc/environments/development/env +++ /dev/null @@ -1,2 +0,0 @@ -DEBUG=true -EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend diff --git a/etc/environments/development/procfile b/etc/environments/development/procfile index 40349a7..6f7c68c 100644 --- a/etc/environments/development/procfile +++ b/etc/environments/development/procfile @@ -1,2 +1,2 @@ -web: manage.py runserver 0.0.0.0:$PORT -watcher: npm run watch +web: bash scripts/server.sh +watcher: pelican -vrdD diff --git a/scripts/server.sh b/scripts/server.sh new file mode 100644 index 0000000..f09ca56 --- /dev/null +++ b/scripts/server.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +cd output/ +python3 -m pelican.server $PORT