Now you can createRPMpackage for yourRailsapplication fairly easily. Here are the instructions:
- Install and configrpmbuild.(You may wanna read anRPMTutorial.)
- Install rpmpackager plugin:
ruby script/plugin install \http://rubyworks.googlecode.com/svn/trunk/rpmpackager/
- Config rpmpackager plugin. Edit vendor/plugins/rpmpackager/config.yml as following:
configuration:# name of your applicationapp_name: rubyworks-dogfooddescription: This is dogfood of RubyWorks.license: Apacheversion: 1.2.1release: 1# RPM dependencies. separated with commasdependencies: openssl, mysql gt;= 5.0# gem dependencies and installation indecies# 0 for gems don’t need selectiongems:redcloth: 0rcov: 1
- CreateRPMpackage:
- rake rpm_package
- (By default the generatedRPMwill install your application to ”/usr/local/lib/rails-apps/#{app_name}”.)
That’s it. Package your application and throw it to deployment :