So right now glitch has blocked pings, meaning bots won’t stay alive. Reading over some other comments, I see that people are saying that Glitch isn’t the place to host a Discord bot at any rate. Do you guys know of any other free alternatives?
It’s not too bad. I migrated my projects from glitch to heroku last night. Just export to github from glitch, and then import from that github repo in heroku. Absolutely flawless transition. The only thing you might have to do is change the hardcoded port number to process.env.port. Whenever you push to github heroku automatically deploys the new changes. Pretty simple. Not as nice as glitch but glitch is way too unreliable. This is coming from someone who was willing to buy glitch boost and did, until it was way too unreliable to host anything on.
Heroku’s free tier gives 550 hours per month, which is ~18 hours per day. That would fall short if you wanted a service up 24/7 for the whole month.
Heroku doesn’t have built in persistent storage. You’d have to sign up for a database service or something on top of that, which is an extra bit of hassle. Plus, you have to fit all your state through whatever fiddly API that database service uses, which is additional work.
If you know your way around how to manage actual servers, I recomend going with this organization that helps people get free servers to host their projects. Though they are free, and will be able to host your projects on a REAL VPS, they do have a strict rules and renewal (still free) system for the VPSes that may be hard to get used to. They also have online coding classes, coding support, and much more. Here’s their Discord server which tells you how to get started.
I was planning for the paid tier and asked on the forum if in the paid plan, glitch would be on all the time. I received a negative answer saying all the servers would be affected irrespective of the plan.
The projects i need to work on need to working 100% during the daytime and on weekdays. Heroku’s free tier has worked brilliantly with no issues the past month. If i need more hours i need to just add a credit card.
I think if we pay we need reliable service. I would be billing my client for the hosting and for sure people would not pay if the hosting is so unreliable and also since few months.
Heroku has an “ephemeral” hard drive, this means that you can write files to disk, but those files will not persist after the application is restarted.
Dunno if there’s a better source for it than this one buried in something rather Ruby-specific though.
During the dyno’s lifetime its running processes can use the filesystem as a temporary scratchpad, but no files that are written are visible to processes in any other dyno and any files written will be discarded the moment the dyno is stopped or restarted.
One of the benefits of self-hosting is it is really only a one time payment for a machine such as a Raspberry Pi. While it may take a while to configure and set up, it will be worth it in the long run if you website or bots sees only a small(ish) amount of traffic.
@anon43649539 How have you set up multiple bots on one system? Or are they all controlled via one javascript/nodejs instance? Maybe DM the answer as it may be a little off topic
Morning! To answer the question, as @anon43649539 said. There are no Good free hosts around, everything has their own catches. Heroku for me is flawless but you can only host 1 project at max to run for a month. If anyone says repl.it again, it’s not gonna give you a private instance. Vercel? Maybe but it’s build process is complicated. g i t h u b a c t i o n s? Not a good idea as it also has limits for the maximum runtime hours of workflows.
Is is really best for you to yknow, get a server, a VPS. Its easier that all of the above once setup. You’ll never know when the services listed above will change direction since people are flocking to use up their resources. And its free.