Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
embar- committed Feb 8, 2024
2 parents f57458f + 2c6b401 commit 80a81a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions run-dev-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

if [ -z "$PORT" ]; then
PORT=80
fi

# Runs Hugo server, accessible at http://localhost:$PORT (default to port 80)
docker run -p 127.0.0.1:${PORT}:${PORT} -u $(id -u):$(id -g) -v ${PWD}:/src hugomods/hugo:exts hugo server --bind 0.0.0.0 --port ${PORT}

0 comments on commit 80a81a2

Please sign in to comment.