Skip to content

Instantly share code, notes, and snippets.

@jackfranklin
Created June 21, 2012 18:42
Show Gist options
  • Save jackfranklin/2967678 to your computer and use it in GitHub Desktop.
Save jackfranklin/2967678 to your computer and use it in GitHub Desktop.
Setting up Pow & MAMP Nicely
Step 1:
touch ~/.powconfig
echo 'export POW_DOMAINS=rails' >> ~/.powconfig
echo 'export POW_DST_PORT=88' >> ~/.powconfig
Then reinstall / install Pow, and then load up MAMP, add a new VHost, doesn't matter what you call it at all or where to put as the destination, go into the "Advanced" tab and under "Customised Virtual Host General Settings" add this:
ServerName pow
ServerAlias *.rails
ProxyPass / http://localhost:20559/
ProxyPassReverse / http://localhost:20559/
ProxyPreserveHost On
If you restart, you should find going to myrailsapp.rails works, and that going to myphpvhostapp.dev also works.
The downside is that if you don't have MAMP running you have to go to myrailsapp.rails:88 to get at the rails app but for me that's a price worth paying.
Now Pow will use *.rails, MAMP uses whatever you like.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment