Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/main4.py Secret

Created December 27, 2024 20:26
Show Gist options
  • Select an option

  • Save KyMidd/09da94770d6b7134e6bc87519b2d77fd to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/09da94770d6b7134e6bc87519b2d77fd to your computer and use it in GitHub Desktop.
# Main function
if __name__ == "__main__":
...
# Start the app in websocket mode for local development
# Will require a separate terminal to run ngrok, e.g.: ngrok http http://localhost:3000
print("🚀 Starting the app")
app.start(
port=int(os.environ.get("PORT", 3000)),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment