To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Install Node.js dependencies with
cd assets && npm install
- Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
- Docker
- Add your user to the docker group (instructions)
Download the Nanobox package appropriate for your Linux distribution from the Nanobox downloads page. Unpack and install the package as you normally install packages in your specific distro.
After having the Nanobox Package installed, you can build the project with:
$ nanobox run
The first time you run any Nanobox command, it will walk you through an initial setup process specifying options for your local environment. The first question it will ask you is how you would like to run Nanobox. Select the Via Docker Native
option.
Add a convenient way to access your app from the browser:
nanobox dns add local phoenix.local
With Nanobox installed, the Getting Started Guides walk you through getting popular languages and frameworks up and running with Nanobox.
To add environment variables to production:
$ nanobox evar add remote PORT=8080
To add environment variables to your local environment:
$ nanobox evar add local PORT=8080
To list local variables:
$ nanobox evar ls local
$ nanobox remote add baltimore-ai
$ nanobox deploy
- Official website: http://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix