Forum: Ruby on Rails Run rails on cd

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Shuaib Z. (Guest)
on 2008-10-21 07:10
(Received via mailing list)
Dear

is there a way that we can rails on cd. for example, a dictionary book
has a cd and they asked me to do software for that. since i am
familiar with rails, i prefer to do it on rails. So, can we have a way
to run the application from the cd. Note the applocation is read only

thanks
Yacobus R. (Guest)
on 2008-10-21 07:56
Hi Shuaib:
Rails run in development or production mode, since you cant disable log
of dev or prodt. You can use rails stand alone CD, like Ruby on Rails
Portable and what about database? ouhave to think about it too. unless
you linked logs to another hardisk drive of user.


Reinhart
Http://Teapoci.BlogSpot.com
Shuaib Z. (Guest)
on 2008-10-21 11:09
(Received via mailing list)
Well, it seems you misunderstood me

The application is a read only application from the user side. The
user is only going to view the matrerial and not to write anything.
So, database will be readonly on the cd. As for the logs emmm. Will
think of a way to disable them. But I am not sure whether we can have
ruby on rails running on cd.


On Oct 21, 11:56 am, Rails T. <rails-mailing-l...@andreas-
Andrew P. (Guest)
on 2008-10-21 14:37
(Received via mailing list)
Shuaib85 wrote:
> Well, it seems you misunderstood me
>
> The application is a read only application from the user side. The
> user is only going to view the matrerial and not to write anything.
> So, database will be readonly on the cd. As for the logs emmm. Will
> think of a way to disable them. But I am not sure whether we can have
> ruby on rails running on cd.

You need a web server - to get a web server your CD would have to be a
bootable Linux (or other CD) that started a webserver and GUI - whether
you can actually implement this and then persuade a user to boot off it
are probably bigger problems than whether your application will work on
a read only filesystem (though you could easily run a RAM disk if you
got that far).
infinteVerve (Guest)
on 2008-10-21 19:07
(Received via mailing list)
Have you checked out Joyent Slingshot? Not sure if it's what you're
looking for, but its worth a look.
Shuaib Z. (Guest)
on 2008-10-22 07:55
(Received via mailing list)
Hi, thanks for the replies.

Joyent Slingshot seems like the one, but the website is down (:

anyway, thanks

I wish that I can find someone who did it
DyingToLearn (Guest)
on 2008-10-22 14:30
(Received via mailing list)
Shuaib85 wrote:
> Well, it seems you misunderstood me
>
> The application is a read only application from the user side. The
> user is only going to view the matrerial and not to write anything.
> So, database will be readonly on the cd. As for the logs emmm. Will
> think of a way to disable them. But I am not sure whether we can have
> ruby on rails running on cd.
>


If the application is read only, then you might be able to get away
with a framework like webby: http://webby.rubyforge.org/

It will generate static HTML. You can probably get away without even
running a webserver.


If that won't work for you, I'd suggest you look at InstantRails
(assuming all your clients run Windows). I used this once for an app
that had to run locally (i.e. we couldn't have a webserver). But you
are still looking at a headache to try to run it ONLY from the CD. You
could probably create an easy installer though.
Frederick C. (Guest)
on 2008-10-22 15:44
(Received via mailing list)
On 21 Oct 2008, at 03:08, Shuaib85 wrote:

>
> Well, it seems you misunderstood me
>
> The application is a read only application from the user side. The
> user is only going to view the matrerial and not to write anything.
> So, database will be readonly on the cd. As for the logs emmm. Will
> think of a way to disable them. But I am not sure whether we can have
> ruby on rails running on cd.

the database could just be sqlite3 which will be quite happy with a
read only file system.
As far as the logs go, the easiest way would probably to set the
logger to a custom Logger subclass that doesn't do anything at all.
I imagine you could easily write a quick shell script/batch file/etc
that spun up a webrick server and pointed the users' browser at it.
You could probably rig it so that the entire ruby environment was on
the cd (if not the user would have to have ruby installed)


Fred
This topic is locked and can not be replied to.