Can I deploy python scripts over a cloud instead of running them on my own computer?

Viewed 185

I have a python script that runs a discord bot. The bot only works when the script is running, which means that in order to use it I must constantly be running a python script which is something I don't want to do. I've looked into cloud services to deploy it on and I keep getting talk about event loops and other mumbo jumbo. Is there a safe and easy way to deploy a python script over a cloud of some sort.

Any help is very welcome.

2 Answers

I personally suggest Heroku, I'm using it for running multiple scripts for free. You can use scheduler addon for scheduling scripts to run at particular time as well. Please refer to heroku documentation & get started!

My first suggestion would be a VPS service like VULTR which I personally use and it costs about $5 a month but you get 1000gb of bandwidth which is nice.

If you're looking for something free then Heroku should be your choice as it's easy to get started although I think there's a restriction where you can only make some amount of requests per month.

Related