Skip to content

Commit

Permalink
add localhost.run instead of ngrok
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilber committed Sep 27, 2023
1 parent e83f5db commit c00ea95
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pykoi/application.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
"""Application module."""
import asyncio
import os
import re
import socket
import subprocess
import threading
import time
import subprocess
import re
import asyncio


from datetime import datetime
from typing import List, Optional, Any, Dict, Union
Expand Down Expand Up @@ -689,8 +688,7 @@ async def read_item(
import nest_asyncio

nest_asyncio.apply()
command = f"ssh -R 80:{self._host}:{self._port} [email protected]"

command = f"ssh -o StrictHostKeyChecking=no -R 80:{self._host}:{self._port} [email protected]"
process = subprocess.Popen(
command,
stdout=subprocess.PIPE,
Expand All @@ -701,6 +699,7 @@ async def read_item(
# Get the public URL without waiting for the process to complete
while True:
line = process.stdout.readline()

if not line:
break

Expand Down

0 comments on commit c00ea95

Please sign in to comment.