This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Running Bonnie in IntelliJ IDEA
Ashok Dongare edited this page Oct 24, 2019
·
20 revisions
Prerequisite: You have completed Mac installation Instructions and IntelliJ Idea ultimate edition installed
- Go to plugins dialog: From the Menu-
IntelliJ IDEA->Preferences->Plugins
(or use shortcut⌘,
) - Type
ruby by jetbrains
in pugin's searchbox - Click on Install button(if already installed it will show
Installed
button grayed out) - Restart IntelliJ IDEA
- For more informations follow official guide by IntelliJ
- From menu
File-> Open-> select your project
-
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
-
Click on Add configuration button from toolbar menu. Run/Debug Configuration will appear
-
Click on
+
and click onRails
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