# Permanent script hosting?

**URL:** <https://www.ruby-forum.com/t/permanent-script-hosting/191060>\
**Category:** Ruby\
**Created:** [July 3, 2010, 9:00pm UTC](https://www.ruby-forum.com/t/permanent-script-hosting/191060 "2010-07-03T21:00:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![oscuro1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ce7236/32.png) [@oscuro1987](https://www.ruby-forum.com/u/oscuro1987)\
**Post date:** [July 3, 2010, 9:00pm UTC](https://www.ruby-forum.com/t/permanent-script-hosting/191060/1 "2010-07-03T21:00:12Z")

</div>

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 😉

---

<div class="post-metadata">

**Author:** ![oscuro1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ce7236/32.png) [@oscuro1987](https://www.ruby-forum.com/u/oscuro1987)\
**Post date:** [July 4, 2010, 6:57am UTC](https://www.ruby-forum.com/t/permanent-script-hosting/191060/2 "2010-07-04T06:57:20Z")

</div>

On Sun, Jul 4, 2010 at 4:00 AM, Manu C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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](http://gist.github.com)

Or do you mean running it?

---

<div class="post-metadata">

**Author:** ![oscuro1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ce7236/32.png) [@oscuro1987](https://www.ruby-forum.com/u/oscuro1987)\
**Post date:** [July 4, 2010, 8:23am UTC](https://www.ruby-forum.com/t/permanent-script-hosting/191060/3 "2010-07-04T08:23:22Z")

</div>

On Jul 4, 2010, at 4:00 AM, Manu C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](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](http://heroku.com)

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

---

<div class="post-metadata">

**Author:** ![oscuro1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ce7236/32.png) [@oscuro1987](https://www.ruby-forum.com/u/oscuro1987)\
**Post date:** [July 4, 2010, 2:42pm UTC](https://www.ruby-forum.com/t/permanent-script-hosting/191060/4 "2010-07-04T14:42:57Z")

</div>

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 ^^.

---

<div class="post-metadata">

**Author:** ![oscuro1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ce7236/32.png) [@oscuro1987](https://www.ruby-forum.com/u/oscuro1987)\
**Post date:** [July 4, 2010, 2:56pm UTC](https://www.ruby-forum.com/t/permanent-script-hosting/191060/5 "2010-07-04T14:56:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![oscuro1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ce7236/32.png) [@oscuro1987](https://www.ruby-forum.com/u/oscuro1987)\
**Post date:** [July 4, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/permanent-script-hosting/191060/6 "2010-07-04T15:03:10Z")

</div>

Sora H. wrote:

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

It’s ok ^^ Thanks for replying anyway 😃

---

<div class="post-metadata">

**Author:** ![oscuro1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ce7236/32.png) [@oscuro1987](https://www.ruby-forum.com/u/oscuro1987)\
**Post date:** [July 4, 2010, 5:30pm UTC](https://www.ruby-forum.com/t/permanent-script-hosting/191060/7 "2010-07-04T17:30:00Z")

</div>

On Sun, Jul 4, 2010 at 7:42 AM, Manu C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 

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

---

<div class="post-metadata">

**Author:** ![oscuro1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ce7236/32.png) [@oscuro1987](https://www.ruby-forum.com/u/oscuro1987)\
**Post date:** [July 4, 2010, 5:11pm UTC](https://www.ruby-forum.com/t/permanent-script-hosting/191060/8 "2010-07-04T17:11:51Z")

</div>

On Sun, Jul 4, 2010 at 1:42 PM, Manu C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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.

---

<div class="post-metadata">

**Author:** ![oscuro1987](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/ce7236/32.png) [@oscuro1987](https://www.ruby-forum.com/u/oscuro1987)\
**Post date:** [July 5, 2010, 11:14pm UTC](https://www.ruby-forum.com/t/permanent-script-hosting/191060/9 "2010-07-05T23:14:46Z")

</div>

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.
