From f5c25fbd5f8ba073072a080a091ebd404a957511 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Sat, 19 Nov 2022 02:22:04 -0800 Subject: [PATCH] Fix pc init bug --- pynecone/constants.py | 2 +- pynecone/pc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pynecone/constants.py b/pynecone/constants.py index 89325e602..735da0624 100644 --- a/pynecone/constants.py +++ b/pynecone/constants.py @@ -99,7 +99,7 @@ DEFAULT_TITLE = "Pynecone App" # The name of the pynecone config module. CONFIG_MODULE = "pcconfig" # The python config file. -CONFIG_FILE = f"{CONFIG_MODULE}.{PY_EXT}" +CONFIG_FILE = f"{CONFIG_MODULE}{PY_EXT}" # The deployment URL. PRODUCTION_BACKEND_URL = "https://{username}-{app_name}.api.pynecone.app" # Token expiration time in seconds. diff --git a/pynecone/pc.py b/pynecone/pc.py index a0f31f77c..138a93837 100644 --- a/pynecone/pc.py +++ b/pynecone/pc.py @@ -91,7 +91,7 @@ def deploy(dry_run: bool = False): pcconfig.API_HOST = utils.get_production_backend_url() # Check if the deploy URI is set. - if not pcconfig.DEPLOY_URI: + if not hasattr(pcconfig, "DEPLOY_URI"): typer.echo("This feature is coming soon!") typer.echo("Join our waitlist to be notified: https://pynecone.io/waitlist") return