# Distributing A Rails App

**URL:** <https://www.ruby-forum.com/t/distributing-a-rails-app/124595>\
**Category:** Rails\
**Created:** [December 30, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595 "2007-12-30T19:58:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [December 30, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/1 "2007-12-30T19:58:13Z")

</div>

I’ve done some Google searches and searched the mailing list archive  
without much success.

I’m working on a rails app that will be a simple story tracking tool  
for Scrum/Agile projects. When it’s functional, I’d like to make it  
available as a live app on my site, but I’d also like to make it  
available as a distribution so that someone could grab a  
self-contained package and install it locally.

Is there a good way to create a gem, say, that could handle this?  
I’ve been looking for tutorials or articles about creating gems, but  
I’m still a bit lost on how that might translate into packaging a  
rails app. Or is there some other good way distribute?

Thanks for any insights.

Troy

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [December 30, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/2 "2007-12-30T20:37:23Z")

</div>

Check this out:

> **[TechTarget: Enterprise IT News, Expert Advice & Research](https://www.techtarget.com/)**
>
> TechTarget delivers enterprise IT news, expert advice and research on AI, cybersecurity, infrastructure and IT strategy to help you make smarter tech decisions.

Ability of Rails app that can run locally and synchronize with the  
server is  
very powerful.

On Dec 30, 2007 10:57 AM, Troy D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve done some Google searches and searched the mailing list archive  
> without much success.

–

> **[Collage | Collaborative real world learning](https://rubyplus.org/)**
>
> Collage is a community for collaborative, real world learning. Find a class in the San Francisco Bay Area, or start a learning circle in your neighborhood.

Free Ruby and Rails Screencasts

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [December 30, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/3 "2007-12-30T20:55:30Z")

</div>

I imagine you are having trouble finding information about that. Rails  
is a web application framework. It is not intended to be used to build  
desktop applications. If you’re talking about distributing the  
application to individuals that are unfamiliar with Ruby on Rails,  
then I just don’t know of anything existing that would make this  
practical.

You would need to develop your own “runtime” environment installer to  
make sure that all the necessary pieces required to run the  
application get installed on the user’s computer. Ruby, all the gems  
you might have used in your application, the Rails application itself.  
Then you would need to create a script, or some other means, to allow  
the user to start Mongrel server and take them to the URL where the  
program runs.

Running Rails as a desktop application is simply outside the scope of  
Rails, which means that you’re probably on your own in finding a  
solution.

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [December 30, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/4 "2007-12-30T21:44:56Z")

</div>

On Dec 30, 2007 11:54 AM, Robert W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I imagine you are having trouble finding information about that. Rails  
> is a web application framework. It is not intended to be used to build  
> desktop applications. If you’re talking about distributing the

Thanks for the reply, Robert. Right, I should have explained. This  
isn’t meant as a desktop app, but anyone who wanted to actually use  
the application would probably like to run it on a local server rather  
than as a hosted application since it tends to contain potentially  
sensitive information about software features.

So, what I’m looking for is an easy way to package up the important  
parts of the rails app so that someone who has rails running could  
easily deploy my app to their environment. Perhaps just zipping it up  
would be enough, but I was hoping for something more, uh, rubyish or  
railsy.

Thanks again,

Troy

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [December 31, 2007, 4:43am UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/5 "2007-12-31T04:43:19Z")

</div>

Zip it, or provide an SVN repository so someone can check it out.

Provide a rake task to boostrap the database to make setup a snap 🙂

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [December 30, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/6 "2007-12-30T23:01:52Z")

</div>

As far as I know, you can just create a tarball/zip file. I believe  
this is what the guys who make Warehouse  
([http://www.warehouseapp.com/](http://www.warehouseapp.com/)) do.

–Jeremy

On Dec 30, 2007 3:44 PM, Troy D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> sensitive information about software features.  
> Troy
> 
> >

–

> **[Jeremy McAnally](http://www.jeremymcanally.com/)**

My books:  
Ruby in Practice

> **[Ruby in Practice - Jeremy McAnally and Assaf Arkin](https://www.manning.com/books/ruby-in-practice)**
>
> Like Ruby itself, Ruby in Practice will make you more productive. The book shows you practical techniques and strategies for small projects and large-scale…

My free Ruby e-book

> **[Site not found · DreamHost](http://www.humblelittlerubybook.com/)**
>
> The owner of this domain has not yet uploaded their website.

My blogs:

> **[Site not found · DreamHost](http://www.mrneighborly.com/)**
>
> The owner of this domain has not yet uploaded their website.

[http://www.rubyinpractice.com/](http://www.rubyinpractice.com/)

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [December 31, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/7 "2007-12-31T21:15:27Z")

</div>

On Dec 30, 2007 2:01 PM, Jeremy McAnally [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> As far as I know, you can just create a tarball/zip file. I believe  
> this is what the guys who make Warehouse  
> ([http://www.warehouseapp.com/](http://www.warehouseapp.com/)) do.
> 
> –Jeremy

If you want to keep it easy to install, look at distributing it with  
Jumpbox. Distributing apps with svn or tarballs is easy, but good  
luck helping everyone install it 🙂

–  
Rick O.

> **[Lighthouse - Beautifully Simple Issue Tracking](https://lighthouseapp.com/)**

[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)

> **[Mephisto—The best blogging system ever](http://mephistoblog.com)**

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [December 31, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/8 "2007-12-31T19:40:13Z")

</div>

Create a plugin:

- [http://wiki.rubyonrails.org/rails/pages/Plugins](http://wiki.rubyonrails.org/rails/pages/Plugins)
- 

[http://nubyonrails.com/articles/2006/05/04/the-complete-guide-to-rails-plugins-part-i](http://nubyonrails.com/articles/2006/05/04/the-complete-guide-to-rails-plugins-part-i)

- [http://railsforum.com/viewtopic.php?id=682](http://railsforum.com/viewtopic.php?id=682)

Cheers, Sazima

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [January 1, 2008, 1:03pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/9 "2008-01-01T13:03:00Z")

</div>

Gems are an awesome way to go too. Suprised nobody has mentioned it yet.

With Gems on Rails, you get some pre-load functionality options as well.

On 12/31/07, Rick O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If you want to keep it easy to install, look at distributing it with

–  
Nathaniel Steven Henry Brown  
604-724-6624

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [January 1, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/10 "2008-01-01T18:55:28Z")

</div>

On Jan 1, 4:02 am, “Nathaniel B.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > On Dec 30, 2007 2:01 PM, Jeremy McAnally [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

How feasible is it to write a ruby on rails app. and distribute it  
commercially, similar to many PHP applications, where you unzip, and  
click a link in the browser to install.

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [January 1, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/11 "2008-01-01T21:30:37Z")

</div>

> How feasible is it to write a ruby on rails app. and distribute it  
> commercially, similar to many PHP applications, where you unzip, and  
> click a link in the browser to install.

Nearly impossible, unfortunately. Running a rails app requires more  
process management.

–  
Rick O.

> **[Lighthouse - Beautifully Simple Issue Tracking](https://lighthouseapp.com/)**

[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)

> **[Mephisto—The best blogging system ever](http://mephistoblog.com)**

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [January 1, 2008, 10:09pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/12 "2008-01-01T22:09:21Z")

</div>

Exactly. To do any real configuration changes you’d need to restart  
the app, thus making the convenience of doing everything in the  
browser useless. 😛

–Jeremy

On Jan 1, 2008 3:29 PM, Rick O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Rick O.  
> [http://lighthouseapp.com](http://lighthouseapp.com)  
> [http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
> [http://mephistoblog.com](http://mephistoblog.com)
> 
> >

–

> **[Jeremy McAnally](http://www.jeremymcanally.com/)**

My books:  
Ruby in Practice

> **[Ruby in Practice - Jeremy McAnally and Assaf Arkin](https://www.manning.com/books/ruby-in-practice)**
>
> Like Ruby itself, Ruby in Practice will make you more productive. The book shows you practical techniques and strategies for small projects and large-scale…

My free Ruby e-book

> **[Site not found · DreamHost](http://www.humblelittlerubybook.com/)**
>
> The owner of this domain has not yet uploaded their website.

My blogs:

> **[Site not found · DreamHost](http://www.mrneighborly.com/)**
>
> The owner of this domain has not yet uploaded their website.

[http://www.rubyinpractice.com/](http://www.rubyinpractice.com/)

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [January 2, 2008, 12:12am UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/13 "2008-01-02T00:12:59Z")

</div>

Thanks…I’ve got some applications I’ve thought about doing in Rails,  
but this seems to be my biggest challenge…I’ve seen a lot of info  
about the framework and ruby, but as a viable commercial application  
(one that is distributed)…I have not seen too much info. Seems most  
people use it for their own needs – one application only (aside from  
plugins, but I don’t think the entire app would works as a plugin).

My second plan (if there is no easy-to-install distributing method for  
rails) is to sell the application to clients with a hosting and  
maintenance plan as well…and just take care of the management,  
updates, hosting, etc. myself for each customer.

This leaves me at the point of figuring out how to distribute/rsync/  
push – whatever you want to call it, to multiple web sites, that do  
not use same data, or could even have customizations on a per-client  
basis to the main trunk.

If anyone knows of any rails-specific books covering this SCM  
scenario, I’d be more than interested in knowing about them.

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [January 2, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/14 "2008-01-02T12:47:30Z")

</div>

On 2 Jan 2008, at 10:25, Nathaniel B. wrote:

> Check out Mingle. Their install process is pretty awesome, and the  
> product aint half bad either.

One should point out that the secret sauce here is jruby, since (in  
super condensed form) you get to lean on java deployment options

Fred

---

<div class="post-metadata">

**Author:** ![Troy\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/d07c76/32.png) [@Troy\_D](https://www.ruby-forum.com/u/Troy_D)\
**Post date:** [January 2, 2008, 11:26am UTC](https://www.ruby-forum.com/t/distributing-a-rails-app/124595/15 "2008-01-02T11:26:08Z")

</div>

Check out Mingle. Their install process is pretty awesome, and the  
product  
aint half bad either.

On 1/1/08, chovy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > 
> 
> click a link in the browser to install.
> 
> >

–  
Nathaniel Steven Henry Brown  
604-724-6624
