[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Packaging a RoR web application



On Mon, Aug 04, 2008 at 02:44:39PM -0400, Richard Hurt wrote:
> I am attempting to package Redmine, a Ruby on Rails project management  
> system, and would like some advice.  This is my first time building a  
> Debian package and I have quite a few questions.  I have pbuilder set up 
> and can use pdebuild to generate a generic Redmine package using the 
> ruby-pkg-tools package.  However, it looks like it just builds a Ruby 
> package and not a RoR package.   I am missing things like a database 
> config and a webserver config.
>
> Is there any documentation out there on packaging Ruby on Rails web  
> apps?  Are there any other RoR packages in Debian that I can take apart 
> and possible copy from?  Do you have any other tips/tricks for me?

Looking at the reverse dependancies of rails it appears that there aren't any that are actual rubyonrails apps.
So your the first.

I don't think that your really gaining anything by using ruby-pkg-tools...
It helps with things like rdoc (which RoR apps usually don't have) and when you use setup.rb or extconf.rb.
I dunno about your app, but my RoR app doesn't use those, and most I've seen don't.

Mediwiki, for example, puts an example apache config in /etc/mediawiki1.7/apache.conf.
Rt does something similar. (I think there's a separate package that installs the apache configs)
Or you could just put it in /usr/share/doc/redmine/examples.
But you should _not_ put it in /etc/apache2/sites-enabled.

The database config should probably be a symlink to /etc/redmine/database.yml.
(so it's in a easily findable place, and is treated as a conffile)

You'd probably want to put the actual app in /usr/share/redmine.

And you should put in a documentation file (/usr/share/doc/redmine/README, or something like that) the basic database setup. (rake db:schema:load and stuff like that)
Or make a script to do all of the required setup. (though rails makes things so easy you probably don't need to)

>
> Thanx!
>   Richard
>

Have fun!,
Ryan

>
> -- 
> To UNSUBSCRIBE, email to debian-ruby-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>

-- 
_________________________
Ryan Niebur
RyanRyan52@gmail.com

Attachment: signature.asc
Description: Digital signature


Reply to: