RubyMine 2023.3 Help

Generate a WAR archive for deployment

RubyMine integrates with Warbler, providing the possibility to generate .war archive of an application. Integration with Warbler requires JRuby.

Upon installing the Warbler gem, the warble command becomes available from the console. Besides that, the Tools | Build WAR command appears from the main menu.

Note that Build WAR file command recognizes the type of the interpreter and gems in project, and suggests to configure the proper versions.

To generate a web archive

  1. From the main menu, choose Tools | Build .WAR file.

  2. Specify the name of the target archive in the field Output file name.

  3. In the Build .WAR file dialog, select the checkboxes next to the directories and files you want to include in the target archive.

  4. Enable or disable the following behavioral options, as required:

    • Executable - if this checkbox is selected, the target archive will be executable.

    • Precompiled - if this checkbox is selected, the Ruby files will be compiled into class files.

    • Include gem repository - if this checkbox is selected, the gem repository will be included into the archive.

    • Turn on invoke/execute tracing, enable full backtrace - if this checkbox is selected, the tracing mode will be enabled.

  5. Select one or more files to be included into the WEB-INF directory of the web archive, and press the WEB-INF config button.

  6. Click OK to generate the archive.

Last modified: 03 November 2023