Pow server is working fine with .dev domains on my local machine (OS X Lion). I now need it to serve an external domain because I'm developing an ecommerce site and my Payment Service Provider's system need to directly communicate with my development server. However I'm having trouble getting Pow to serve an external domain via the POW_EXT_DOMAINS environment variable.
Here's what I've done:
symlinked my rails app to ~/.pow/myapp (I can access it fine at http://myapp.dev)
Signed up for a free no-ip.org account and created a domain, e.g. myapp.no-ip.org, with an A record pointing to my external IP address
Set up port forwarding of port 80 on my router to my local machine
Set Pow's POW_EXT_DOMAINS environment variable to no-ip.org (export POW_EXT_DOMAINS=no-ip.org)
When I go to http://myapp.no-ip.org I can see the 'Pow is installed' splash screen, so I know the domain is reaching my machine. However Pow doesn't seem to recognise that an app is being requested.
Any ideas? Thanks in advance for any advice.
I got it working - here's the solution in case any one else has the same problem.
I had originally set the POW_EXT_DOMAINS variable by simply typing export POW_EXT_DOMAINS=no-ip.org in terminal.
Instead, you should create a pow config file at ~/.powconfig and put the command into that file:
export POW_EXT_DOMAINS=no-ip.org
Then restart pow by manually killing the process in activity monitor.
Pow then properly runs the myapp symlink when I access http://myapp.no-ip.org
Hope that helps someone else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With