Redix.PubSub.Fastlane Demo App
To start your Phoenix app:
- Install dependencies with
mix deps.get
- Start Phoenix endpoint with
mix phx.server
First:
- For this case we are compiling our images locally inside Docker
Then:
- Build custom Docker image (+).
- Just send resulting tarball into the Production server.
Current demo application running locally.
$ make deploy
$ ARGS="web=5" make scale
$ sudo sh -c "echo '127.0.0.1 some_app.lvh.me' >> /etc/hosts"
Now you can visit some_app.lvh.me
from your browser.
$ docker-machine start default
$ eval $(docker-machine env default)
$ make deploy
$ ARGS="web=5" make scale
$ sudo sh -c "echo '$([[ $DOCKER_HOST =~ ^[a-z:\/]*([0-9\.]*):* ]] && echo ${BASH_REMATCH[1]}) some_app.lvh.me' >> /etc/hosts"
$ make down
Ready to run in production? Please check our deployment guides.
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: https://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix