-
Notifications
You must be signed in to change notification settings - Fork 6
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
Host Snazzle publicly somewhere. #8
Comments
Maybe, we'll see about that. Can Vercel host Flask projects? If not we could try Replit, the Hacker yearly plan equates to about $6.16 a month (CAD) so I can have a boosted always-on repl for Snazzle |
the problem with hosting it on replit is that it can't access scratch's api (confirmation needed), so you'd have to use scratchDB. however, whenever you need to get project details, sometimes the project just isn't on scratchDB and it falls back to having no title or any other info |
Vercel has an experimental Python runtime, but hosting in the cloud can be pretty inconsistent lol You could also split up the project into an API and frontend so you can host the API on a local server while the frontend goes on GitHub Pages or something |
confirmed, replit is completely* blocked from scratch's api apart from cloud variables if logged in with a session id because why not |
What about GitHub Codespaces? Never used that before, but might be worth looking into. |
github codespaces is definitely not designed for 24/7 hosting of a web app, and it would end up costing over $130 a month for the base plan with 20gb of storage. maybe pythonanywhere would be good? we would be able to use scratch's api (unlike on replit), and it'd only be $5/$6.61 CAD/£3.87 monthly for the Hacker plan. |
The problem with this is that the frontend and backend are really closely integrated thanks to Flask. Without Flask the website doesn't function |
YOU ARE THE BEST |
I’m hosting it at snazzle.davidtheplatform.eu.org |
this is on |
none of them work |
we can try pythonanywhere |
You can use https://deta.space Edit: But it has a maximum limit of 20 seconds to process each request, i.e., if it takes more than 20 seconds to load the data and render the flask template, the request will be closed! |
Deta.space is kind of weird and won’t work for this. Basically the only way to use it is if every user has a deta.space account I could turn on snazzle.davidtheplatform.eu.org in a few hours |
No, that's not true. The app can have public endpoints where a user can make requests without even creating an account: https://deta.space/docs/en/build/faq#why-is-an-unauthorized-error-thrown-when-i-try-to-access-my-app |
Huh, I didn’t know that. Deta.space would probably be the best place for hosting then |
Yes! But it has a 20 second limit, i.e., if a specific page/endpoint takes more than 20 seconds to return a response, the request gets closed. In Snazzle, maybe requesting the forum endpoints may be an issue. |
I personally use a free service called Bot-Hosting to host some APIs. It's fully free (You need to wait for the first day after registration as you need to get 10 coins everyday for free by completing Captcha puzzles). BTW the server of SUI API is hosted there. |
snazzle.davidtheplatform.eu.org should work now. |
We could try using Github Actions to run Snazzle on a public instance? |
This is a bad idea for a series of reasons. |
wut |
I'm going to close this as snazzle.davidtheplatform.eu.org works |
we still need a proper domain, since snazzle.davidtheplatform.eu.org is superr long |
I think it would be easier to get this up on vercel instead of going to my computer to download and run the commands to get the repository up locally
The text was updated successfully, but these errors were encountered: