Created
          June 21, 2012 18:42 
        
      - 
      
- 
        Save jackfranklin/2967678 to your computer and use it in GitHub Desktop. 
    Setting up Pow & MAMP Nicely
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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