mru2 / phoenix_boilerplate

Sample phoenix project with a production setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Phoenix Boilerplate

Default setup for developing, testing, and deploying a phoenix app

Test

mix test

Dev

Dependencies

  • elixir
  • docker

Setup

mix deps.get

Use

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

Deploy

Dependencies

  • travis
  • docker-cloud

Setup

Travis

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

Docker Cloud

Configure a stack using the docker-cloud.yml stackfile

About

Sample phoenix project with a production setup


Languages

Language:JavaScript 57.9%Language:Elixir 41.1%Language:Makefile 0.8%Language:Shell 0.1%