Pow Server: Serving an External Domain Through POW_EXT_DOMAINS

The Pow server works fine with .dev domains on my local computer (OS X Lion). Now I need him to serve an external domain, because I am developing an e-commerce site, and my system of payment service providers must communicate directly with my development server. However, I was having trouble getting Pow to serve the external domain using the POW_EXT_DOMAINS environment variable.

Here is what I did:

  • symlinked my rails application for ~ / .pow / myapp (I can access it at http://myapp.dev )

  • Sign up for a free no-ip.org account and create a domain, for example. myapp.no-ip.org, with an A entry pointing to my external IP address

  • Configure port 80 port forwarding on my router to the local computer

  • Set the Pow environment variable POW_EXT_DOMAINS to no-ip.org (export POW_EXT_DOMAINS = no-ip.org)

When I go to http://myapp.no-ip.org , I see that the "Pow is installed" pop-up screen, so I know that the domain is reaching my machine, However, Pow does not seem to recognize that the application is requesting.

Any ideas? Thanks in advance for any advice.

+4
source share
1 answer

This works for me - here is the solution if someone else has a problem.

I initially set the variable POW_EXT_DOMAINS by simply typing in the terminal export POW_EXT_DOMAINS = no-ip.org.

Instead, you should create a pow configuration file in ~ / .powconfig and put the command in this file:

export POW_EXT_DOMAINS=no-ip.org 

Then restart pow, manually killing the process in the activity monitor.

Pow then correctly launches the myapp symlink when you access http://myapp.no-ip.org

Hope this helps someone else.

+13
source

Source: https://habr.com/ru/post/1395921/


All Articles