Skip to content

untra/hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello

This project is just a simple hello world app running on phoenix v1.3 framework, and hosted with nanobox. It was created following this tutorial , with some modifications:

The PORT environment variable

In Phoenix 1.3, the PORT environment variable must be set when running when in production. Before staging the nanobox app in a dry-run context, add this variable with

nanobox evar add dry-run PORT=8080

nanobox forwards all http/s traffic on 80 and 443 to the application running on 8080. Before deploying to production, add the environment variable to your remote context.

nanobox evar add remote PORT=8080

Good luck! 🍻


To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • 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.

Learn more

About

Phoenix 1.3 hello world with nanobox configuration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published