Debug your LiveView App on a Phone with Ngrok

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 7

  • @michaeldimmitt9974
    @michaeldimmitt9974 2 ปีที่แล้ว

    Really cool, the setup I have done in the past with a wired connection and developer tools on safari for iphone and safari for mac is not ideal.
    This is a better any platform any browser solution for localhost. 💯

    • @liveviewmastery
      @liveviewmastery  2 ปีที่แล้ว

      For sure. You can definitely do this by hand, but this is so much easier!

  • @solvm1652
    @solvm1652 2 ปีที่แล้ว

    Hell yeah!

  • @albin-q7i
    @albin-q7i 11 หลายเดือนก่อน +1

    Who knew Kanye could code

  • @pauloffborba
    @pauloffborba 2 ปีที่แล้ว +1

    To see the site on the phone, I just changed the ip in the /config/dev.ex to:
    http: [ip: {0, 0, 0, 0 }, port: 4000],
    Then I discover my ip in the LAN with the terminal. On Linux I use this command:
    ip a
    On windows will be ipconfig.
    Run the server with mix phx.server
    And use this ip with the port to access on the phone like
    192.168.0.5:4000
    I hope this helps someone.