Skip to content

Instantly share code, notes, and snippets.

@chrise86
Forked from dre1080/.powenv
Last active August 29, 2015 14:25
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 chrise86/197272d6e5d51fa8e151 to your computer and use it in GitHub Desktop.
Save chrise86/197272d6e5d51fa8e151 to your computer and use it in GitHub Desktop.
# In your app's root.
# Make Pow!! export all the env variables contained in the .env file used by Foreman.
export $(cat .env)
# This should be run once only
cd /path/to/myapp
echo 7000 > .port # Whatever port your app server is using
ln -s $PWD/.port ~/.pow/`basename $PWD`
echo "port: 7000" > .foreman
# Then start your app normally everytime with:
# > foreman start
# Voila! App will be available at http://myapp.dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment