To start your Phoenix app:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.create && mix ecto.migrate
- Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: http://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix
- staging-ronin-erik http://staging-ronin-erik.ringrevenue.net:4000/
- staging-ronin-olaf http://staging-ronin-olaf.ringrevenue.net:4000/
- staging-ronin-baleog http://staging-ronin-baleog.ringrevenue.net:4000/
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang
sudo apt-get install elixir
We are using a git repo running as the root user.
sudo -i
SSH_AUTH_SOCK=$SSH_AUTH_SOCK service nginx stop
git clone [email protected]:Invoca/ronin.git
cd ronin
mix deps.get
mix ecto.create
tmux new -s ronin
Join the tmux session:
sudo -i
cd /root/ronin
tmux attach -t ronin
Stop the currently running process by pressing ctrl-c twice.
Press CTRL-d to exit the tmux session.
Checkout the latest code.
SSH_AUTH_SOCK=$SSH_AUTH_SOCK git fetch && git pull
tmux new -s ronin
In the new TMUX session, run the launching servers command from below to start the service again.
Up arrow twice to run the server again.
These are the commands to start iex and join the cluster for each of the servers. Pick the command for the server you are on.
iex --name "[email protected]" --cookie milano --erl "-config sys.config" -S mix
iex --name "[email protected]" --cookie milano --erl "-config sys.config" -S mix
iex --name "[email protected]" --cookie milano --erl "-config sys.config" -S mix
These are the commands to run phoenix and join the cluster for each of the servers. Pick the command for the server you are on.
elixir --name "[email protected]" --cookie 'milano' --erl "-config sys.config" -S mix phoenix.server
elixir --name "[email protected]" --cookie 'milano' --erl "-config sys.config" -S mix phoenix.server
elixir --name "[email protected]" --cookie 'milano' --erl "-config sys.config" -S mix phoenix.server