Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Running Bonnie in IntelliJ IDEA

Ashok Dongare edited this page Oct 24, 2019 · 20 revisions

Guide to run Bonnie in IntelliJ IDEA

Prerequisite: You have completed Mac installation Instructions and IntelliJ Idea ultimate edition installed

Install Ruby plugin from marketplace

  1. Go to plugins dialog: From the Menu- IntelliJ IDEA->Preferences->Plugins (or use shortcut ⌘,)
  2. Type ruby by jetbrains
  3. Click on Install button(if already installed it will show Installed button grayed out)
  4. Restart IntelliJ IDEA
  5. For more informations follow official guide by IntelliJ

Open project in IntelliJ

  • From menu File-> Open-> select your project

Configure project SDK & Rails framework

  • File-> Project Structure-> Project (or use short key ⌘;) select ruby-2.4.5 from Project SDK dropdown(or create new one and your ruby if not present in dropdown).
  • Provide path to Project compiler output e.g. PATH_TO_BONNIE_PROJECT/bonnie/out
  • Click on Apply and then Ok buttons from right bottom corner of window
  • Make sure that you have frameworks detection enabled by default: File-> Project Structure-> Facets-> Detection Check Enable framework detection checkbox
  • Click on Event log from bottom right most corner of IntelliJ. It will open a window where you can see ```
      Frameworks Detected
      JRuby on Rails, JRuby frameworks are detected.
      Configure 
    
  • Click on configure and select all the checkboxes and click on Ok button

Add configuration and Run Bonnie

  • Click on Add configuration button from toolbar menu. Run/Debug Configuration will appear

  • Click on + and click on Rails from left pane.

  • From right pane change Unnamed to startbonnie. Select Environment as development

  • Check Run browser checkbox

  • Choose Ruby SDK: Check Other SDK radio button and select Ruby-2.4.5

  • Click on Apply and OK

  • Click on startbonnie green triangle icon. Bonnie rails server will start on localhost:3000

  • For more information like running rake tasks or screenshots please refer: https://www.jetbrains.com/help/idea/opening-a-rails-project-in-intellij-idea.html