See Buildpacks for an alternative way to deploy Ruby on Rails applications.
manifest.yml must specify the Ruby runtime version and Rails as the framework type:
framework: runtime: ruby20
The default Ruby version is 1.9.
Rmagick gem currently not supported.
PostgreSQL Gem (pg) version must be pinned to 0.12.2 (if used):
gem 'pg', '0.12.2'
Must specify Rake Gem immediately before the line loading rails. This happens because when Rails loads, it finds version 0.9.2 of Rake, and that becomes the only version of Rake in the process. Later code wants version 0.9.2.2, and fails:
gem 'rake', '0.9.2.2' gem 'rails'
For Ruby 1.9 Cloud Foundry requires a tweak to the jquery-rails gem:
To get the asset pipeline working on Helion Stackato, precompile your assets in your development environment, which compiles them into public/assets:
bundle exec rake assets:precompile
Gemfile must be included in your app that lists all required gems. Run:
$ bundle install $ bundle package
any time you modify the
Gemfile and prior to pushing an app to Helion Stackato.
VCAP sees a
Gemfile.lock in the application, it will ensure the needed gems are packaged, and
BUNDLE_PATH environment variable to point at them.
gem :path => some/path
Cloud Foundry supports database auto-reconfiguration for Rails applications.
Non-HTTP apps that run as a Helion Stackato application under the control of the Health Manager.
name: ruby-app framework: type: rails3 runtime: ruby19 command: ruby worker.rb processes: web: ~
For the best performance, using Thin Ruby web server is recommended. Include
gem 'thin' in your
First, you need bundler and rails installed locally:
$ sudo gem install rails bundler --no-ri --no-rdoc
bundle exec must be used when running any commands that
are installed through Gemfile/bundler.
rake stats, for instance, run the
stackato run command:
$ stackato run <appname> bundle exec rake stats
See the Command Reference for details on the use of