Remote Rake without SSH

A

Anton Pirogovski

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

Brian Candler

Anton said:
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)
 
A

Anton Pirogovski

Brian said:
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.
 
M

Marnen Laibow-Koser

Anton said:
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
(e-mail address removed)
 
A

Anton Pirogovski

Marnen said:
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.
 
M

Marnen Laibow-Koser

Anton said:
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
(e-mail address removed)
 
M

Marnen Laibow-Koser

Anton said:
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
(e-mail address removed)
 
A

Anton Pirogovski

Marnen said:
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. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top