我如何运行在iPod上开发Rails应用程序/网站 [英] how do i run a development rails app / website on an ipod
问题描述
我有一个应用程序/网站,我对我的本地的iMac上运行,我想测试它在我的iPad浏览器。
I have a app / site that i am running on my local imac and i want to test it on my ipad browser.
可以连接到我的iMac本地主机的Rails应用throught与我的iPad上wifi?如果是这样如何! ?
Can connect to my imac localhost rails app throught the wifi with my ipad ? If so how!! ?
我的应用程序是使用子域名多租户应用程序,所以我使用的主机对我的我的文件指向例如achme.mycompany.dev为localhost。
My app is a multi tenant app that uses subdomains and so i use the hosts file on my my to point for example achme.mycompany.dev to localhost.
我如何做到这一点的iPad上转到achme.mycompany.dev在浏览器中运行的本地应用上我的iMac?
How do i do this on the ipad to goto achme.mycompany.dev in the browser and it runs the local app on my imac ?
希望这一切才有意义!请帮助。
Hope this all makes sense! Please help.
最好的问候
里克
best regards Rick
推荐答案
我希望你的MacBook和iPad相同的网络上。现在去开放式网络preference。检查屏幕截图。
I am hoping that your macbook and iPad are on same network. Now go to "Open network preference". Check screenshot.
您将看到一个IP地址。
You will see an ip.
再从iPad上打开:your_ip:3000
then from ipad open: your_ip:3000
这篇关于我如何运行在iPod上开发Rails应用程序/网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!