pleroma-docker/entrypoint.sh
sn0w 04432bfc8a
ok this is emberassing
Fixes the caching problem and configuration madness.
Startup on a migrated database takes about 1 to 3 seconds instead of
minutes now. I don't know what went through my head when building
the old stuff.

Let's just pretend all commits up until here never happended.
We good? nice~
2019-01-10 00:37:21 +01:00

23 lines
255 B
Bash
Executable File

#!/bin/bash
set -e
set -x
if [[ -n "$BUILDTIME" ]]; then
mix local.rebar --force
mix local.hex --force
mix deps.get
mix compile
exit 0
fi
mix compile
# Migrate db
mix ecto.create
mix ecto.migrate
# Off we go!
exec mix phx.server