# Remote Rake without SSH

**URL:** <https://www.ruby-forum.com/t/remote-rake-without-ssh/181356>\
**Category:** Ruby\
**Created:** [January 10, 2010, 5:49pm UTC](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356 "2010-01-10T17:49:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![c8h10n4o2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@c8h10n4o2](https://www.ruby-forum.com/u/c8h10n4o2)\
**Post date:** [January 10, 2010, 5:49pm UTC](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356/1 "2010-01-10T17:49:38Z")

</div>

Is there a way to remotely complete Rake tasks/execute Rake files  
without SSH access?  
I’m using a hosting company that provides Ruby-on-Rails, but does not  
allows SSH access.I just want to install the Radiant CMS, but it needs  
to db:bootstrap a database, which must be done via Rake.  
Any help appreciated.

---

<div class="post-metadata">

**Author:** ![c8h10n4o2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@c8h10n4o2](https://www.ruby-forum.com/u/c8h10n4o2)\
**Post date:** [January 10, 2010, 10:49pm UTC](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356/2 "2010-01-10T22:49:26Z")

</div>

Anton Pirogovski wrote:

> Is there a way to remotely complete Rake tasks/execute Rake files  
> without SSH access?  
> I’m using a hosting company that provides Ruby-on-Rails, but does not  
> allows SSH access.I just want to install the Radiant CMS, but it needs  
> to db:bootstrap a database, which must be done via Rake.  
> Any help appreciated.

Perhaps you could run the db:bootstrap locally, but pointing to the  
target database (e.g. a mysql server)

Otherwise: if you can run a Rails app then you can run Ruby scripts, and  
Ruby has system(…), so you should be able to run whatever you like.  
Just be very careful not to leave your system wide open to attack (e.g.  
by installing a Rails app which lets you enter shell commands via a HTTP  
FORM without any authentication)

---

<div class="post-metadata">

**Author:** ![c8h10n4o2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@c8h10n4o2](https://www.ruby-forum.com/u/c8h10n4o2)\
**Post date:** [January 12, 2010, 6:53pm UTC](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356/3 "2010-01-12T18:53:39Z")

</div>

Brian C. wrote:

> Perhaps you could run the db:bootstrap locally, but pointing to the  
> target database (e.g. a mysql server)  
> Haven’t thought of this, I’ll try it.  
> Otherwise: if you can run a Rails app then you can run Ruby scripts, and  
> Ruby has system(…), so you should be able to run whatever you like.  
> Ruby of course has system(), but it’s not allowed by the admin of  
> server.  
> Just be very careful not to leave your system wide open to attack (e.g.  
> by installing a Rails app which lets you enter shell commands via a HTTP  
> FORM without any authentication)  
> Okay, I already always look for those insecure scripts.

---

<div class="post-metadata">

**Author:** ![c8h10n4o2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@c8h10n4o2](https://www.ruby-forum.com/u/c8h10n4o2)\
**Post date:** [January 12, 2010, 7:34pm UTC](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356/4 "2010-01-12T19:34:52Z")

</div>

Marnen Laibow-Koser wrote:

> Find another hosting company. Seriously. Rails really needs shell  
> access, or at least some way to run Rake.  
> I know… -\_-  
> It’s a free hosting company, so ssh is disabled.I hoped there is some  
> other way to manipulate Ruby remotely.  
> Indeed, I’m going to soon rent a VPS at prgmr, so this problem is not  
> very neccessary to solve.Anyway thanks for help everyone.

---

<div class="post-metadata">

**Author:** ![c8h10n4o2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@c8h10n4o2](https://www.ruby-forum.com/u/c8h10n4o2)\
**Post date:** [January 12, 2010, 7:42pm UTC](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356/5 "2010-01-12T19:42:33Z")

</div>

Anton Pirogovski wrote:

> Marnen Laibow-Koser wrote:
> 
> > Find another hosting company. Seriously. Rails really needs shell  
> > access, or at least some way to run Rake.  
> > I know… -\_-  
> > It’s a free hosting company, so ssh is disabled.I hoped there is some  
> > other way to manipulate Ruby remotely.  
> > Indeed, I’m going to soon rent a VPS at prgmr, so this problem is not  
> > very neccessary to solve.Anyway thanks for help everyone.

If you need free Rails hosting, I recommend Heroku.

Best,  
–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![c8h10n4o2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@c8h10n4o2](https://www.ruby-forum.com/u/c8h10n4o2)\
**Post date:** [January 12, 2010, 7:26pm UTC](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356/6 "2010-01-12T19:26:32Z")

</div>

Anton Pirogovski wrote:

> Is there a way to remotely complete Rake tasks/execute Rake files  
> without SSH access?  
> I’m using a hosting company that provides Ruby-on-Rails, but does not  
> allows SSH access.I just want to install the Radiant CMS, but it needs  
> to db:bootstrap a database, which must be done via Rake.  
> Any help appreciated.

Find another hosting company. Seriously. Rails really needs shell  
access, or at least some way to run Rake.

Best,  
–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![c8h10n4o2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@c8h10n4o2](https://www.ruby-forum.com/u/c8h10n4o2)\
**Post date:** [January 12, 2010, 7:47pm UTC](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356/7 "2010-01-12T19:47:55Z")

</div>

Marnen Laibow-Koser wrote:

> Would this be ambitiouslemon, by any chance?  
> No.It’s called HelioHost.  
> If you need free Rails hosting, I recommend Heroku.  
> Thanks for the recommendation, I haven’t heard of it. 🙂

---

<div class="post-metadata">

**Author:** ![c8h10n4o2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@c8h10n4o2](https://www.ruby-forum.com/u/c8h10n4o2)\
**Post date:** [January 12, 2010, 7:43pm UTC](https://www.ruby-forum.com/t/remote-rake-without-ssh/181356/8 "2010-01-12T19:43:05Z")

</div>

Anton Pirogovski wrote:

> Marnen Laibow-Koser wrote:
> 
> > Find another hosting company. Seriously. Rails really needs shell  
> > access, or at least some way to run Rake.  
> > I know… -\_-  
> > It’s a free hosting company, so ssh is disabled.I hoped there is some  
> > other way to manipulate Ruby remotely.  
> > Indeed, I’m going to soon rent a VPS at prgmr, so this problem is not  
> > very neccessary to solve.Anyway thanks for help everyone.

Would this be ambitiouslemon, by any chance?

If you need free Rails hosting, I recommend Heroku.

Best,  
–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
