torquebox/torquebox — pull request #109 by NSError (2012-10-23 21:45:59+00:00)
Title: Archive enhancements

Adds two abilities to the `torquebox archive` command:

* `--precompile-assets` is a Rails-specific behavior to run `bundle exec rake assets:precompile` before packaging gems (if that switch is provided) so that you don't have to worry about running the asset precompile on your servers - or even worry about having your asset-related packages on your servers, either.
* `--package-gems` runs `bundle install --deployment` in the app directory, thereby grabbing all the necessary gems, and installs them into `vendor/bundle`. It leaves the `.bundle/config` file alone during the archiving process, so it can tell the deployed application's bundler installation to use the gems in `vendor/bundle`. It should do that, anyway, but leaving it makes that intention more explicit.
* `--package-without` specifies bundler groups to be omitted from the packaging process. By default this is set to `development test`.