This is a example project that includes:
- Phoenix and Elixir with Postgres
- Configuration management with conform
- Deployment with destillery and ansistrano (through a separate docker container)
- Nginx example
- Circle 2.0 build example
- Migrations
- Copy configuration
cp docker/config/web.example.env docker/config/web.env
cp docker/config/db.example.env docker/config/db.env
- Run: docker-compose up
- Done. Visit localhost:4000
docker-compose run --rm web test
Building release:
docker-compose exec web bash -c "MIX_ENV=prod mix release --env=prod"
Deploying to local webserver:
dc run --rm deploy ansible-playbook deploy.yml -i stages/local
- Extend config value list (with log destination among others)
- Extend env list to include cookie signage
- Look into asset bundling
- Investigate CI builds
- Research best approach for media handling