Web server for the Kritikos app.
-
Run postgres container on port 5432
docker run -it --name kritikos_pg_dev -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres:alpine
-
Clone repo, Setup DB & run migrations
mix ecto.setup
-
Setup client assets (js, svg, css, etc.)
cd assets && npm install
-
Install elixir (on mac)
brew install elixir
-
Start server
iex -S mix phx.server
to start server under interactive elixir, ormix phx.server
to start server independently
-
Update version in
mix.exs
and runmake build
-
Push to registry (replace version)
make push
-
SSH into [email protected] droplet, update
docker-compose.yaml
to reflect newer web image version on registry, rundocker-compose up -d
OR
-
Run
make deploy
after updating version inmix.exs