mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-18 16:01:18 +00:00
18 lines
494 B
Bash
Executable File
18 lines
494 B
Bash
Executable File
#!/bin/sh
|
|
# Entrypoint for the elixir-dev container. Keeps deps + the build
|
|
# tree in sync with mix.lock on every boot and then hands off to
|
|
# `mix phx.server`, which boots Phoenix with code reload enabled.
|
|
#
|
|
# All commands are cheap when nothing changed:
|
|
# - `mix deps.get` is a no-op when deps/ matches mix.lock
|
|
# - `mix deps.compile` only rebuilds packages whose source actually
|
|
# changed (it diffs the deps/ tree)
|
|
set -e
|
|
|
|
cd /app
|
|
|
|
mix deps.get
|
|
mix deps.compile
|
|
|
|
exec mix phx.server
|