Allow overriding of the bind host

This commit is contained in:
Rico Sta. Cruz 2018-06-27 07:16:33 +08:00
parent 175121e581
commit fe78d49be5
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
npmbin := ./node_modules/.bin
PORT ?= 3000
HOST ?= 127.0.0.1
# Builds intermediate files. Needs a _site built first though
update: _site critical
@ -23,9 +24,9 @@ dev-webpack:
dev-jekyll:
if [ -f _site ]; then \
bundle exec jekyll serve --safe --trace --drafts --watch --incremental --port $(PORT); \
bundle exec jekyll serve --safe --trace --drafts --watch --incremental --host $(HOST) --port $(PORT); \
else \
bundle exec jekyll serve --safe --trace --drafts --watch --port $(PORT); \
bundle exec jekyll serve --safe --trace --drafts --watch --host $(HOST) --port $(PORT); \
fi
test: _site

View File

@ -8,7 +8,7 @@ services:
ports:
- '4001:4001'
- '35729:35729'
command: 'env PORT=4001 yarn run dev'
command: 'env PORT=4001 HOST=0.0.0.0 yarn run dev'
volumes:
rubygems: