Default setup for developing, testing, and deploying a phoenix app
mix test
- elixir
- docker
mix deps.get
Run a local server with :
docker-compose up
env $(cat .env | xargs) mix phoenix.server
Run a console with :
docker-compose up
env $(cat .env | xargs) iex -S mix phoenix.server
- travis
- docker-cloud
Add your docker-cloud credentials in environment variables
DOCKER_USERNAME myusername
DOCKER_PASSWORD secretsecret
Also add your production environment configuration
HOST myhost.com
SECRET_KEY_BASE mysecretkey
Configure a stack using the docker-cloud.yml
stackfile