Permanent script hosting?

Hello,

I need a ruby script to be permanently up, but can’t host it on my PC as
I must shut it down overnight.
Is there any (FREE) hosting solution that allows such operation ?

Thanks in advance :wink:

On Sun, Jul 4, 2010 at 4:00 AM, Manu C. [email protected]
wrote:

Hello,

I need a ruby script to be permanently up, but can’t host it on my PC as
I must shut it down overnight.
Is there any (FREE) hosting solution that allows such operation ?

http://gist.github.com

Or do you mean running it?

On Jul 4, 2010, at 4:00 AM, Manu C. [email protected] wrote:

I need a ruby script to be permanently up, but can’t host it on my PC as
I must shut it down overnight.
Is there any (FREE) hosting solution that allows such operation ?

Hmm, “hosting” is “distribute a script” or “host application (cgi or
rack?)”… i don’t understand it.

so i write down two cases here.

distribute a script: Use dropbox’s public folder (it can get public
http url) or http://gist.github.com
host application: if you using cgi app, sorry i don’t know free
hosting service. ;-(
But i’m know rack hosting service in free. (rack app means sinatra,
rails…)
It named heroku, it can use by here: http://heroku.com


Sora H. (iPad) - @sora_h
Blog: http://codnote.net
Prof: http://sorah.cosmio.net

Hello and thanks for your informations.

Indeed, I didn’t specify what kind of hosting i needed sorry.
In fact, I need my script to be run (as CGI) on a distant server.
It’s not rails, it’s a handwritten custom script.

I don’t use rails yet but I’ll take note of Heroku ^^.

Hmm… Sorry, I’m japanese so i don’t know web hosting space not in
Japan…
Sorry. :frowning:

Sora H. wrote:

Hmm… Sorry, I’m japanese so i don’t know web hosting space not in
Japan…
Sorry. :frowning:

It’s ok ^^ Thanks for replying anyway :smiley:

On Sun, Jul 4, 2010 at 7:42 AM, Manu C. [email protected]
wrote:

Can we see your script? It might be simple to get it to conform to rack.

On Sun, Jul 4, 2010 at 1:42 PM, Manu C. [email protected]
wrote:

Hello and thanks for your informations.

Indeed, I didn’t specify what kind of hosting i needed sorry.
In fact, I need my script to be run (as CGI) on a distant server.
It’s not rails, it’s a handwritten custom script.

I don’t use rails yet but I’ll take note of Heroku ^^.

That could be tricky enough. CGI isn’t a common way to deploy Ruby apps.
The performance is quite poor (particularly memory) so most hosting
companies wont do it.

If you can rewrite your CGI app into something that conforms to the Rack
specification (all Ruby web frameworks are Rack-enabled) then a lot of
choices open up. You can then look for Hosting companies that offer
Passenger support, and of course heroku - which has a free plan for
simple Ruby web apps.

On Sunday, July 04, 2010 07:42:59 am Manu C. wrote:

Hello and thanks for your informations.

Indeed, I didn’t specify what kind of hosting i needed sorry.
In fact, I need my script to be run (as CGI) on a distant server.
It’s not rails, it’s a handwritten custom script.

I don’t use rails yet but I’ll take note of Heroku ^^.

You don’t need Rails. Sinatra would work. Any Rack-based framework would
work.
Just don’t use raw CGI.

And if you can do that, depending what your script actually does, it
might
work well on appengine-jruby. That’s the largest free host I could find.
For
comparison:

Heroku’s free offering gives you a 5 meg database, but PostgreSQL is
probably
more familiar and easier to work with if you’ve used MySQL or something
similar.

App Engine’s free offering gives you a 1 gigabyte database, but you
have all
the restrictions of app engine – 30 seconds to respond or die,
non-relational
database, etc.