Fix pc init bug

This commit is contained in:
Nikhil Rao 2022-11-19 02:22:04 -08:00
parent 67058b66a4
commit f5c25fbd5f
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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