04432bfc8a
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~
23 lines
255 B
Bash
Executable File
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
|