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

Implement a working dev server #40

Merged
merged 4 commits into from
Jul 15, 2021
Merged

Implement a working dev server #40

merged 4 commits into from
Jul 15, 2021

Conversation

sansyrox
Copy link
Member

@sansyrox sansyrox commented Jul 5, 2021

Will not merge as Pyo3 is not compiling on Mac OS and am unable to test the implementation.

robyn/__init__.py Outdated Show resolved Hide resolved
@sansyrox
Copy link
Member Author

sansyrox commented Jul 6, 2021

@JackThomson2 , can you please have a look at the approach of this PR?

The implementation is clearly hacky needs improvement however I believe since it is a dev mode feature only and gets the hot reload to work it is a decent way.

What do you think?

@JackThomson2
Copy link
Contributor

@sansyrox sure I'll try take a look this weekend if that's alright, busy week unfortunately

@sansyrox
Copy link
Member Author

sansyrox commented Jul 6, 2021

sure I'll try take a look this weekend if that's alright, busy week unfortunately

@JackThomson2 , yep yep 🖖

from .robyn import Server
from asyncio import iscoroutinefunction
from .responses import static_file, jsonify

from watchdog.observers import Observer
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to include this as a dev dependency in pyproject.toml

@sansyrox sansyrox force-pushed the dev_server branch 2 times, most recently from 905fd97 to 2eedc93 Compare July 15, 2021 20:09
Copy link
Member Author

@sansyrox sansyrox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependencies issue has been fixed! 🔥

Idk why pyo3 is failing again!

@sansyrox
Copy link
Member Author

This works well on all machines. Something wrong with the pythoning.

@sansyrox sansyrox merged commit 66c231a into main Jul 15, 2021
@sansyrox sansyrox deleted the dev_server branch July 15, 2021 21:18
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

Successfully merging this pull request may close these issues.

2 participants