Skip to content

pc.cond works only in localhost... #863

Answered by cheuora
cheuora asked this question in Q&A
Discussion options

You must be logged in to vote

I found the reason of this problem.

my pcconfig.py file was wrong.

import pynecone as pc

config = pc.Config(
    app_name="pyne",
    api_url = 'http://<my ubuntu>:3000',
    bun_path="$HOME/.bun/bin/bun",
    db_url="sqlite:///pynecone.db",
    env=pc.Env.DEV,
)

I have changed api_url port num to 8000 and pc.cond() starts work.

Do you have any idea what relationship between pc.cond() and port 8000?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@picklelo
Comment options

@picklelo
Comment options

Answer selected by cheuora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants