mirror of
https://memleak.eu/sn0w/pleroma-docker.git
synced 2024-11-16 02:34:59 -05:00
34 lines
527 B
Plaintext
Executable File
34 lines
527 B
Plaintext
Executable File
#!/bin/ash
|
|
|
|
set -e
|
|
|
|
# Ensure that the environment is clean
|
|
if [[ -d /pleroma-runtime ]]; then
|
|
rm -rf /pleroma-runtime
|
|
fi
|
|
mkdir /pleroma-runtime
|
|
|
|
# Copy sources
|
|
rsync -azI /pleroma/ /pleroma-runtime/
|
|
|
|
# Copy overrides
|
|
rsync -azI /custom.d/ /pleroma-runtime/
|
|
|
|
# Go to runtime workspace
|
|
cd /pleroma-runtime
|
|
|
|
# Make sure that the tooling is present
|
|
mix local.hex --force
|
|
mix local.rebar --force
|
|
|
|
# Recompile
|
|
mix deps.get
|
|
mix clean && mix compile
|
|
|
|
# Prepare DB
|
|
mix ecto.create
|
|
mix ecto.migrate
|
|
|
|
# Liftoff o/
|
|
exec mix phx.server
|