-
Notifications
You must be signed in to change notification settings - Fork 22
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
Monorepo migration - bring "Data Magic" into the primary repo #123
Comments
Thinking ahead to deployment and for discussion purposes, here is one article I was reading about a possible way to do it There probably is a way to do it with our current host (Netlify I'm pretty sure), but the generalities in the article are still true There's also this slightly different approach which is in the context of Netlify https://testdriven.io/blog/static-site-flask-and-netlify/ |
@ArLough very helpful thanks! I'm also open to alternatives to using something besides Flask or Netlify for this project if you or anyone else wants to propose anything. The Flask decision was based on it's "non-opiniated" simplicity and the fact that the site started with MKDocs (Python) and it involves AI/ML (Python) so it made sense to use Python for everything. I don't imagine switching to Docusaurus (Node / React) changes anything when it comes to Flask, but if it does let me know, as I am not a developer. I also don't know if Flask has limitations as the project scales. If so, please share those opinions. As for Netlify - I happen to like working with it because it's so easy to administer and has some great features that would be a pain to do with AWS. But it does cost money compared to GitHub pages, and is probably more expensive than AWS. |
@shreeup has been playing around with deploying "Data Magic" to Vercel. If it's a better fit than another host, that's awesome. My main concern is price - would I have to pay for both Netlify & Vercel? That starts to add up on top of the other project costs. I suppose whatever we use to host this thing will have a cost to it beyond Netlify? Or can we consolidate? |
this is the error i received when deploying to vercel. I am trying to make use of free tier
I am trying to find alternatives |
i am going to delete venv folder from data-magic github repo (https://github.com/climate-tech-handbook/data-magic/tree/main/venv) . i think it is not really used and make the project heavy, in an effort to make it easier to deploy |
Netlify does have serverless functions as an offering, but I'll have to look into it and see if it fits our use case. |
I don't think the Docusaurus switch will affect anything. Flask itself has a reputation as best for side projects and smaller web apps. But, I think it should work at least in the immediate future. There are alternatives that are still Python based like Django and FastAPI that are meant for more production sites and larger websites. But, I think we should be able to make that switch in the future if needed. FastAPI in particular looks very similar to Flask/ |
I was able to deploy docker image to render platform, Traceback (most recent call last): Steps: Build docker image push to docker hub
deploy image from docker hub to render |
I experienced the same async issue on my local machine. It was resolved by doing 'pip install asgiref' for me |
It's time to get the dirty Data Magic repo cleaned up and merged into our primary repo.
@ArLough is leading this, with advisory assistance from @bigolboyyo, @justBanks, and @shreeup
Tasks:
The text was updated successfully, but these errors were encountered: