Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the app config #71

Closed
StanYaha opened this issue Aug 18, 2017 · 1 comment
Closed

About the app config #71

StanYaha opened this issue Aug 18, 2017 · 1 comment

Comments

@StanYaha
Copy link

StanYaha commented Aug 18, 2017

It's my code

loop = asyncio.get_event_loop()
app = loop.run_until_complete(Goblin.open(loop,
    get_hashable_id=get_hashable_id))
app.config_from_file('config.yaml')
loop.run_until_complete(gen_jane(app))

In my code, i want to update my config, but i cant't update the config.
It seems always use the default config. Because when i make the port:123456, it did not report error.
Please test it and check it.It may be a bug.Thank you!

@StanYaha
Copy link
Author

I am sorry.
It seems that

app.config_from_file('config.yaml')

is not the Goblin classmethod but the Cluster classmethod!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant