Skip to content

Commit

Permalink
added s6 services
Browse files Browse the repository at this point in the history
  • Loading branch information
yvess committed Jun 6, 2020
1 parent c711f7b commit f041bd4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/nuxt/s6/etc/cont-init.d/start_check
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/with-contenv sh

START_NUXT=${START_NUXT:-NO}
if [ "$START_NUXT" = "YES" ]; then
rm /etc/services.d/nuxt/down
fi
Empty file.
7 changes: 7 additions & 0 deletions docker/nuxt/s6/etc/services.d/nuxt/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/with-contenv sh

cd /opt/nuxt
if [ ! -d "/opt/nuxt/.nuxt/dist/" ]; then
nuxt build
fi
exec nuxt start

0 comments on commit f041bd4

Please sign in to comment.