透明思考


Transparent Thoughts


Create RPM For Your Rails Application

Now you can createRPMpackage for yourRailsapplication fairly easily. Here are the instructions:

  1. Install and configrpmbuild.(You may wanna read anRPMTutorial.)
  2. Install rpmpackager plugin:
    ruby script/plugin install \http://rubyworks.googlecode.com/svn/trunk/rpmpackager/
  3. 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
  4. 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 :