forked from bpm/bpm
-
Notifications
You must be signed in to change notification settings - Fork 1
Using BPM with Rails
wagenet edited this page Oct 20, 2011
·
2 revisions
In your Rails Gemfile add:
gem 'bpm'
BPM has a Railtie which includes the two following config options:
config.preview_bpm_app = false
config.bpm_app_dir = 'app'
To preview your BPM apps in the Rails server, set:
config.preview_bpm_app = true
By default the Railtie expects your BPM app in public/app.
Your app must live in public, but you can choose the subdirectory by setting:
config.bpm_app_dir = SUBDIR
In most cases you will only want to enable BPM preview in development (and test for integration testing). Prior to deploying to production, you should run bpm rebuild in your BPM app directory. This will allow your app to run much more quickly than using the BPM preview middleware in production.