how do i run a development rails app / website on an ipod

后端 未结 5 1408
北海茫月
北海茫月 2021-01-04 08:19

I have a app / site that i am running on my local imac and i want to test it on my ipad browser.

Can connect to my imac localhost rails app throught the wifi wit

5条回答
  •  一个人的身影
    2021-01-04 09:00

    I use proxylocal ngrok for this:

    $ ngrok http 3000
    ngrok by @inconshreveable                                                                                                                       (Ctrl+C to quit)
    
    Session Status                online
    Account                       Sergio (Plan: Free)
    Version                       2.2.8
    Region                        United States (us)
    Web Interface                 http://127.0.0.1:4040
    Forwarding                    http://be278635.ngrok.io -> localhost:3000
    Forwarding                    https://be278635.ngrok.io -> localhost:3000
    
    Connections                   ttl     opn     rt1     rt5     p50     p90
                                  0       0       0.00    0.00    0.00    0.00
    

    Now you can open http://be278635.ngrok.io from your ipad without worrying about your machine's ip address.

提交回复
热议问题