mirror of
https://memleak.eu/sn0w/pleroma-docker.git
synced 2024-12-21 13:48:49 -05:00
21 lines
292 B
Bash
Executable File
21 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
# Generate a config file
|
|
ruby /conf/parser.rb /conf/config.yml > config/runtime-config.exs
|
|
|
|
# Recompile if needed
|
|
if [[ ! -z "$RECOMPILE" ]]; then
|
|
mix deps.get
|
|
mix compile
|
|
fi
|
|
|
|
# Migrate db
|
|
mix ecto.create
|
|
mix ecto.migrate
|
|
|
|
# Off we go!
|
|
exec mix phx.server
|