Skip to content

Instantly share code, notes, and snippets.

@skovsgaard
Created October 29, 2014 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skovsgaard/3622bfd7a31e27afbe46 to your computer and use it in GitHub Desktop.
Save skovsgaard/3622bfd7a31e27afbe46 to your computer and use it in GitHub Desktop.
A one liner for running a Phoenix application open to the outside world.
#!/usr/bin/env bash
su -c "MIX_ENV=prod PORT=80 mix phoenix.start >> prod_out.log &"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment