How to develope a standalone application in Rails

I have developed a rails 3.1 application with mysql, accessable by
internet
However, I also need a version of the same application used standalone
on the users PC or MAC, i.e a form of an off-line mode, for those
users that demand full controle of their data

Can that be done ? My requiremets are

  • a local database
  • an application that is easy to install and not require separate
    installations of ruby, rails, webserver, mysql or sqlite etc
  • an application that runs both on PC and MAC

What I need is a railsapplication that any user can install with a few
commands and that works locally as a standalone application or as a
rails application in production mode, using a local database and the
web-browser locally.
Is that possible ?

On 02/13/2012 05:39 AM, Hans wrote:

  • an application that runs both on PC and MAC

What I need is a railsapplication that any user can install with a few
commands and that works locally as a standalone application or as a
rails application in production mode, using a local database and the
web-browser locally.
Is that possible ?

It sounds like what you want is InstantRails however it only works on
Windows and has not been updated recently. It works fine on Windows to
support a stand-alone app with a little tweaking.

On Feb 13, 2012, at 11:05 AM, Norm S. wrote:

installations of ruby, rails, webserver, mysql or sqlite etc
It sounds like what you want is InstantRails however it only works on Windows
and has not been updated recently. It works fine on Windows to support a
stand-alone app with a little tweaking.
What was that offline Rails framework that Joyent created a few years
back? I know they open-sourced it, but I forget what it was called or
whether it survived the jump to Rails 3.

Walter

Can it be slingshot ?

http://joyeur.com/2007/03/22/joyent-slingshot/

/Christian

13 feb 2012 kl. 17:12 skrev Walter Lee D. [email protected]:

Take a look at
http://www.erikveen.dds.nl/distributingrubyapplications/rails.html

Gerard

That was it. And I was conflating that with Connector, which they did
open-source: GitHub - jacques/joyent-connector: Joyent Connector along with a
huge “this probably won’t work in 3 unless you completely re-write it”.
As far as I can tell, slingshot is nowhere to be found.

Walter

Hi Hans,

Have you finally found a solution for your problem ?
I have the same problematic you had and I can’t find any solution except
using rack-offline
(railscasthttp://railscasts.com/episodes/247-offline-apps-part-1
).
Unfortunately, my applications must be compatible with FireFox 3.6+ and
IE7+…
I develop my application on Linux system.

Thanks in advance

Hugo

Le mercredi 15 fvrier 2012 10:22:15 UTC+1, Hans a crit :

Thanks for all comments
The Distributing Rails Applications - A Tutorial
link seems promising but it was written 200 and much has happened with
both rails and ruby since then, so it might not be up to date

My main conclusion from you comments is that it is possible but there
is no offline Rails framework available today, for rails 3 and for
ruby 1.9

Is that correct ???

I have not used Rails 3.x but with 2.3 I use Instant Rails as a
prepackaged system MS Windows. It is basically impossible to have a
prepackaged system that runs on Mac and Windows because of the
incompatibility of their systems. On InstantRails (available from
rubyforge.org) I upgraded the version of ruby and I just freeze the
rails and all the gems I can. Take a look at it and see if 2.3.15 will
satisfy your requirements. You may be able to upgrade InstantRails to
support 3.x but I have not done that yet.

Norm