Using WEBrick you could navigate to an app you were serving from another device/virtual machine by navigating to your.ip.address.here:port
Is it possible to do something similar with pow.cx?
Using WEBrick you could navigate to an app you were serving from another device/virtual machine by navigating to your.ip.address.here:port
Is it possible to do something similar with pow.cx?
There are basically two options:
Example accessing from a virtual windows machine: Suppose you are running two rails applications in pow: store.dev and auth.dev, and you want to access them from a windows xp virtual machine to test them with IE, you only need to edit your hosts file to add the lines:
C:\WINDOWS\system32\drivers\etc\hosts
And then open the IE browser to access your applications in http://store.dev and http://auth.dev respectivelly.
The latest version of Pow (0.4.0) now includes xip.io support. You can read about the release here.
Here's a quick explanation of how this helps Pow serve your Rails apps across your entire local network, from their post:
Here's a description of xip.io, from their site:
Specifically, no, because Pow uses the
Host
header of the request to determine which app you need to access. To get that working remotely, you would have to have the remote machine map the required domain name to your IP address - either with a local DNS server or by editing the HOSTS file. Both of which are possible but annoying.The simplest thing to do in that case is to start up a standalone Rails server as you mentioned (using
./script/server
orrails s
depending on the version), and then you can addresshttp://[ip address]:3000
as before.In other words, Pow works because it intercepts your local domain resolution, something that isn't affected by (or available to) remote machines.