summaryrefslogtreecommitdiffhomepage
path: root/bin/docker-entrypoint
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-03-09 16:02:59 -0500
committerrealtradam <[email protected]>2024-03-09 16:02:59 -0500
commitfdd9a2ef16b9401048f0c6b743c09ddcb52a8516 (patch)
tree434ffb70536b5a72efcee3ed6b46275ced0d5e27 /bin/docker-entrypoint
downloadgameHolster-fdd9a2ef16b9401048f0c6b743c09ddcb52a8516.tar.gz
gameHolster-fdd9a2ef16b9401048f0c6b743c09ddcb52a8516.zip
The site is born
Diffstat (limited to 'bin/docker-entrypoint')
-rwxr-xr-xbin/docker-entrypoint8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/docker-entrypoint b/bin/docker-entrypoint
new file mode 100755
index 0000000..67ef493
--- /dev/null
+++ b/bin/docker-entrypoint
@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+# If running the rails server then create or migrate existing database
+if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
+ ./bin/rails db:prepare
+fi
+
+exec "${@}"