Skip to content

Commit

Permalink
Add start-docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Jan 2, 2024
1 parent 15dec89 commit 0cf895f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rel/overlays/bin/start-docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

set -e

CURDIR=$PWD
BINDIR=$(dirname -- "$0")
cd "$BINDIR"; BINDIR=$PWD; cd "$CURDIR"

$BINDIR/prod eval 'AbsintheFederationExample.Release.create_repos()'
$BINDIR/prod eval 'AbsintheFederationExample.Release.migrate()'

PHX_SERVER=true exec $BINDIR/prod start

0 comments on commit 0cf895f

Please sign in to comment.