The procedure for creating a simple Rails application for Warbler, is similar to the procedure described in Creating a Simple Rails Application.
Create a new directory for the Warbler application. For example:
mkdir rails-warbler |
Change to rails-warbler directory and create a sample application called hello:
jruby -S rails hello |
Edit the enviroment.rb file to indicate that your application does not use a database:
Open rails-warbler/hello/config/environment.rb in a text editor.
Remove the pound character (#) in front of line 21 to uncomment it so that it reads as follows and save:
config.frameworks -= [ :active_record, :active_resource, :action_mailer ] |
Exit and save the file.
Use Warbler to create a war file in rails-warbler/hello application directory:
jruby -S warble |
This creates a hello.war file in the directory.