I'm working on a web app, trying to test it out on my iphone. This app uses subdomains as account keys, so I need to be able to access my MacBook via both
test1.localhost.dev:3000
test2.localhost.dev:3000
In OSX I simply add the following lines to my "hosts" file;
127.0.0.1 test1.localhost.dev test2.localhost.dev
The problem I'm having is that when you hit the app using the MacBook's IP address the app blows up because it doesn't recognize the domain, and there's no subdomain.
How do I update the hosts file on my iPhone?
test1.localhost.dev:3000
test2.localhost.dev:3000
In OSX I simply add the following lines to my "hosts" file;
127.0.0.1 test1.localhost.dev test2.localhost.dev
The problem I'm having is that when you hit the app using the MacBook's IP address the app blows up because it doesn't recognize the domain, and there's no subdomain.
How do I update the hosts file on my iPhone?