Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #31 from WillMoggridge/serve_args
Browse files Browse the repository at this point in the history
Optional serve args
  • Loading branch information
deadlight authored Jul 18, 2017
2 parents 17f6248 + 29c0b16 commit 665499b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions generators/run/templates/run
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ case $run_command in
fi
# Run the serve container, publishing the port, and detaching if required
<% if (django) { %>django_run "${project}-serve" "--env PORT=${PORT} --publish ${PORT}:${PORT} ${detach} ${run_serve_docker_opts}"
<% } else if (jekyll) { %>bundler_run "${project}-serve" "--env PORT=${PORT} --publish ${PORT}:${PORT} ${detach} ${run_serve_docker_opts}" jekyll serve -P ${PORT} -H 0.0.0.0
<% } else { %>node_run "${project}-serve" "--env PORT=${PORT} --publish ${PORT}:${PORT} ${detach} ${run_serve_docker_opts}" yarn run serve
<% if (django) { %>django_run "${project}-serve" "--env PORT=${PORT} --publish ${PORT}:${PORT} ${detach} ${run_serve_docker_opts}" $*
<% } else if (jekyll) { %>bundler_run "${project}-serve" "--env PORT=${PORT} --publish ${PORT}:${PORT} ${detach} ${run_serve_docker_opts}" jekyll serve -P ${PORT} -H 0.0.0.0 $*
<% } else { %>node_run "${project}-serve" "--env PORT=${PORT} --publish ${PORT}:${PORT} ${detach} ${run_serve_docker_opts}" yarn run serve $*
<% } %>
;;
"stop")
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-canonical-webteam",
"version": "0.3.2",
"version": "0.3.3",
"description": "Generators for creating and maintaining Canonical webteam projects",
"homepage": "https://design.canonical.com/team",
"author": {
Expand Down

0 comments on commit 665499b

Please sign in to comment.