Integration with JetBrains TeamCity, which provides a continuous integration and build management server A commercial license for RubyMine 2.0 costs $99 and features one year of updates. About JetBrains License Server. RubyMine 1.0 or higher. License Server issues and revokes license tickets to/from network clients based on properties of license keys that are provided by JetBrains after purchase. If you have added an unlimited license key, Total Tickets and Free Tickets rows are not assigned a numerical value because.
The most used IDE for Ruby on Rails developers is probably JetBrains RubyMine. Apart from the well-designed GUI it adds some nice debugging features. It`s also possible to work with an remote interpreter/debugger on a server. Which is useful, for example in my case, when using Windows but developing on for Linux platforms (which is most likely for RoR). In this post I`m going to explain how to config RubyMine for using a remote server. In my case I use Ubuntu Server running in a VM hosted by virtual box.
RubyMine 2017.1 EAP3 (build 171.2455.2) Release Notes RubyMine 2017.1 EAP2 (build 171.2272.16) Release Notes RubyMine 2017.1.6 (build 171.4694.84) Release Notes.
Install a SFTP-Server:
I recommend vsftpd cause it`s a save easy to configure ftp-Server. Install it via:
For configuring the server we need to edit the configuration file, which should be found here: “/etc/vsftpd.conf”. Open the configuration file:
Uncomment the following lines:
- Allowing local users to login
- Enable writing permissions
NOTE: This configuration is just for my development environment. For a production system you probably want to add more security by using non local ftp-accounts and stuff. For more information take a look at https://wiki.ubuntuusers.de/vsftpd/
Add a Remote Server configuration to RubyMine
First thing in RubyMine we have to do is adding a remote server configuration. To do that create a local project (we need to do that with an open project in other case we can`t do the mapping of the folders). Go to “Settings” -> “Build, Execution, Deployment”. Select the green plus and choose SFTP. Type in the name for the connection and apply. Enter the details for the connection afterwards, which is IP, root path, user and password. Test the connection and apply the changes.
RubyMine will clone all changes made locally to the server. We need to specify the local as well as the server path. That`s happening with Folder-Mappings. Go to the tap “Mappings” within the remote server configuration. Specify a local path (the folder your project is in) and a remote folder.
Add a remote interpreter
Now that we have set up the remote server connection it`s time to add the ruby SDK. In the settings menu go to “Languages & Frameworks” and select “Ruby SDK and Gems”. Click on the green plus and choose “new remote”.
The Path of the ruby interpreter. You can find the ruby interpreter in two paths on linux:
- /home/”username”/.rbenv/shims/ruby
- /home/”username”/.rbenv/versions/2.3.1/bin/ruby
For discovering gems it`s important to use the second ruby interpreter. Add the path to ruby and click ok. RubyMine is searching for gems now, this can take a while. After finishing you should see a list of gems. Click ok to leave the settings.
Run/Debug Configurations
In the Main-Menu-Bar select “Run”-> “Edit Configuration” and choose “Rails”-“Development:project” in the sidebar. In the Configuration-Tap add your server IP and port. Make sure the right SDK is selected (the remote).
Start working:
If you already started to develop on the server you can download the project. If you start from the scratch you can start coding now. For running your code on the rails server upload your code to the server and start the server like you`re use to (“Run”->”run”) . To upload your changes I recommend to use the Sync-feature it will show the changes you made (folders won`t get deleted).
Share License server to activate copyright for products in the ecosystem of Jetbrains. You can activate the products below:
# Note
The guide only uses for study purpose, the article only wishes to share it with the community, not encouraging free use.
If available, purchase products at: https://www.jetbrains.com/idea/buy/
# How to use
# 1. Download Jetbrains agent
Download Jetbrains agent
here.
Rubymine Free License Server Hosting
Extract to/home/ntc/jetbrains-agent.jar
for Ubuntu, /Users/ntc/jetbrains-agent.jar
for Mac, -javaagent:C:Usersntcjetbrains-agent.jar
for Windows.
# 2. Config Custom VM Options
Open your application (PHPStorm, Webstorm, .etc), choose Help
->Edit Custom VM Options
Add new line to this file:
Save and restart IDE.
# 3. Update License
Choose Help
->Register
->License Server
, fills Server address
with:
# 4. Notes
If jetbrains-agent.jar
not working, you can follow this step:
- Remove all config concern to Jetbrains like
in /etc/hosts
.
- Add new line
0.0.0.0 https://account.jetbrains.com:443
inC:WindowsSystem32driversetchosts
for Windows users.
Activation code work for:
Rubymine Free License Server Settings
- IntelliJ IDEA Ultimate / Activation Code IntelliJ IDEA Ultimate (2019.3.3 and down)
- Rider / Activation Code Rider (2019.3.2 and down)
- GoLand / Activation Code GoLand (2019.3.2 and down)
- AppCode / Activation Code AppCode (2019.3.5 and down)
- CLion / Activation Code CLion (2019.3.4 and down)
- PyCharm Professional / Activation Code PyCharm Professional (2019.3.3 and down)
- WebStorm / Activation Code WebStorm (2019.3.3 and down)
- RubyMine / Activation Code RubyMine (2019.3.3 and down)