bigcartel / dugway

Easily build and test Big Cartel themes.
https://developers.bigcartel.com/api/themes
MIT License
149 stars 22 forks source link

Access Dugway on local network #121

Closed timknapen closed 9 years ago

timknapen commented 9 years ago

Hi,

Is it possible to access my local test Dugway server from a another device on the same network? I would love to test directly from my iphone while running the Dugway server on my macbook.

nickendle commented 9 years ago

Hey @timknapen - there are a couple tools that'll let you do this:

https://localtunnel.me/ https://ngrok.com/

There's also the iOS simulator (if you have XCode installed) that you can use to test iOS devices easily - I find this comes in handy for quick testing :) https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/Introduction/Introduction.html

timknapen commented 9 years ago

I've been doing my testing mostly in the iOS simulator, but it's just a simulator. For typography etc. I like to test on the actual device to see the right sizing. This is probably the wrong place to ask, but I don't get why i can't access the dugway server from another device if I run it on port 80. When I run my apache server on the same port I have no problem at all. What am I missing?

outerim commented 9 years ago

@timknapen by default the dugway server only binds to the ip address 127.0.0.1. You can specify an option on the command line that allows it to listen on other ports/ips but it's configured this way by default for security. Try running dugway server --host=0.0.0.0. This will cause dugway to bind to all IP addresses on your system. It will be available to any devices on your local network using your computers hostname or IP address.

timknapen commented 9 years ago

Ah great! This works perfectly! I was expecting that specifying the port was going to be enough. Thanks a lot!