Skip to content

Instantly share code, notes, and snippets.

@adsteel
Last active February 9, 2016 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adsteel/665f6a8f5ebf59188a36 to your computer and use it in GitHub Desktop.
Save adsteel/665f6a8f5ebf59188a36 to your computer and use it in GitHub Desktop.
Testing Local Rails App on a Device

Connect your device to localhost

1. listen on all interfaces

$ rails s --binding=0.0.0.0 or rails s -b 0.0.0.0

2. Ensure firewall is off/permissive

3. Get ip address from preferences/network

4. Enter ip address + port into device address bar

# e.g. 192.168.0.2:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment