Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port forward in .powder file #110

Open
farski opened this issue Dec 13, 2014 · 4 comments
Open

Port forward in .powder file #110

farski opened this issue Dec 13, 2014 · 4 comments

Comments

@farski
Copy link

farski commented Dec 13, 2014

Is there a way to make a .powder file that would set up a hostname to a specific port?

@ckrailo
Copy link

ckrailo commented Jan 13, 2015

Hey @farski, I think this might be what you're looking for?

http://pow.cx/manual.html#section_2.1.4

Pow's port proxying feature lets you route all web traffic on a particular hostname to another port or IP address. To use it, just create a file in ~/.pow (instead of a symlink) with the destination port number as its contents.

For example, to forward all traffic for http://proxiedapp.dev/ to port 8080 on your localhost:
$ echo 8080 > ~/.pow/proxiedapp

To forward traffic for http://proxiedapp.dev/ to an IP address other than localhost (such as a virtual machine), create a file with the destination protocol, IP, and port:
$ echo http://1.2.3.4:8080 > ~/.pow/proxiedapp

You can also use port proxying to access web apps written for other runtimes such as Python or Node.js. Remember that services behind the proxy won't automatically be started or stopped like Rack apps.

@farski
Copy link
Author

farski commented Jan 13, 2015

@ckrailo Yes, that's what I'm talking about. Does powder support that? Is there a way to write a .powder file such that when you run powder link it creates a file with a port number in it?

@otagi
Copy link

otagi commented Mar 18, 2015

@farski You can use powder portmap PORT to create the proxy file instead of the symlink.

@farski
Copy link
Author

farski commented May 19, 2015

@otagi I'm looking for a way to check the config into VC. We try to standardize powder link as part of a the setup process for each project we have, so ideally there would be a way to define the port map in a .powder file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants