Discuss Scratch

IcyCoder
Scratcher
1000+ posts

Free service to host python code 24/7

I am looking for a good free trusted host to run my Scratch API python script that make Bridge Variables.

It must be:

Reliable enough that if a password is in the code I do not have to worry about it.
Able to run without my computer on about 24/7

Does one even exist if not me and @jokebookservice1 have another idea.

Last edited by IcyCoder (July 3, 2016 17:43:14)

jokebookservice1
Scratcher
1000+ posts

Free service to host python code 24/7

You should probably mention that it is a Python script…
Macie1234
Scratcher
100+ posts

Free service to host python code 24/7

Maybe make an account especially for this service so it doesn't matter?
IcyCoder
Scratcher
1000+ posts

Free service to host python code 24/7

Macie1234 wrote:

Maybe make an account especially for this service so it doesn't matter?
Yes I have one
MrFlash67
Scratcher
500+ posts

Free service to host python code 24/7

Both Heroku and OpenShift seem to be what you're after, but I don't think either of them do 24/7 for free.
IcyCoder
Scratcher
1000+ posts

Free service to host python code 24/7

MrFlash67 wrote:

Both Heroku and OpenShift seem to be what you're after, but I don't think either of them do 24/7 for free.
Oh OK any others?
Firedrake969
Scratcher
1000+ posts

Free service to host python code 24/7

IcyCoder wrote:

MrFlash67 wrote:

Both Heroku and OpenShift seem to be what you're after, but I don't think either of them do 24/7 for free.
Oh OK any others?
You probably won't find anything that's both free and runs 24/7…
Maybe run it on a Pi or something?

Last edited by Firedrake969 (July 3, 2016 23:41:04)

IcyCoder
Scratcher
1000+ posts

Free service to host python code 24/7

Firedrake969 wrote:

IcyCoder wrote:

MrFlash67 wrote:

Both Heroku and OpenShift seem to be what you're after, but I don't think either of them do 24/7 for free.
Oh OK any others?
You probably won't find anything that's both free and runs 24/7…
Maybe run it on a Pi or something?
That was the backup plan
bobbybee
Scratcher
1000+ posts

Free service to host python code 24/7

“good free trusted” Pick 2 out of 3.
IcyCoder
Scratcher
1000+ posts

Free service to host python code 24/7

bobbybee wrote:

“good free trusted” Pick 2 out of 3.
free trusted
Firedrake969
Scratcher
1000+ posts

Free service to host python code 24/7

IcyCoder wrote:

bobbybee wrote:

“good free trusted” Pick 2 out of 3.
free trusted
more like

“good/trusted free 24/7” pick 2 of 3

bobbybee
Scratcher
1000+ posts

Free service to host python code 24/7

IcyCoder wrote:

bobbybee wrote:

“good free trusted” Pick 2 out of 3.
free trusted
I'm sure you can get a friend to home host something for you then.
NickyNouse
Scratcher
1000+ posts

Free service to host python code 24/7

“good trusted free 24/7 easy cloud linux” pick 2 of 3
MrFlash67
Scratcher
500+ posts

Free service to host python code 24/7

IcyCoder wrote:

bobbybee wrote:

“good free trusted” Pick 2 out of 3.
free trusted
Heroku and Openshift are both free and reasonably big/run by big people. Openshift's done by Red Hat, who do various enterprise/Linux stuff, and Heroku's owned by Salesforce, who are probably not gonna sell all your information.
IcyCoder
Scratcher
1000+ posts

Free service to host python code 24/7

On Heroku what does it mean by goes to sleep after 30 min of inactivity because my script is always active
IcyCoder
Scratcher
1000+ posts

Free service to host python code 24/7

I am getting Hereku Error can u help:

Counting objects: 25, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (18/18), done.
Writing objects: 100% (25/25), 23.87 KiB | 0 bytes/s, done.
Total 25 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Using set buildpack heroku/python
remote:
remote: ! Push rejected, failed to detect set buildpack heroku/python
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to bridgevar.
remote:
To https://git.heroku.com/bridgevar.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/bridgevar.git'

Last edited by IcyCoder (July 4, 2016 14:58:55)

jTron
Scratcher
100+ posts

Free service to host python code 24/7

IcyCoder wrote:

I am getting Hereku Error can u help:
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
You might want to try the “More info” link that you were given.

Reading the page, you may need to explicitly set the buildpack.
$ heroku buildpacks:set heroku/python

The page for the python buildpack might offer other hints as to why the build is failing, if that's not the problem. For example,
A requirements.txt file must be present at the root of your application's repository.

Regarding the sleeping, free heroku webapps will sleep (rather, be forcibly terminated) after thirty minutes of web inactivity. (Not script inactivity, your script will be stopped.)

When a web request is made to a sleeping dyno, it will have to wake up (takes around thirty seconds). Because of this, do not rely on any filesystem or memory storage on the dyno; it will be reset to your git commit when it wakes up.

Last edited by jTron (July 4, 2016 15:15:12)

IcyCoder
Scratcher
1000+ posts

Free service to host python code 24/7

jTron wrote:

IcyCoder wrote:

I am getting Hereku Error can u help:
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
You might want to try the “More info” link that you were given.

Reading the page, you may need to explicitly set the buildpack.
$ heroku buildpacks:set heroku/python

The page for the python buildpack might offer other hints as to why the build is failing, if that's not the problem. For example,
A requirements.txt file must be present at the root of your application's repository.

Regarding the sleeping, free heroku webapps will sleep (rather, be forcibly terminated) after thirty minutes of web inactivity. (Not script inactivity, your script will be stopped.)

When a web request is made to a sleeping dyno, it will have to wake up (takes around thirty seconds). Because of this, do not rely on any filesystem or memory storage on the dyno; it will be reset to your git commit when it wakes up.
For some reason that is not working… but this is my requirements.txt

scratchapi==1.4
IcyCoder
Scratcher
1000+ posts

Free service to host python code 24/7

Still not working I made requirements.txt I made runtime.txt I downloaded all the required stuff. Same error
IcyCoder
Scratcher
1000+ posts

Free service to host python code 24/7

IT WORKED!

Powered by DjangoBB