In the Edit Project Path Mappings dialog, specify the local and remote project root paths. To do this, click the Edit Path Mappings button. The final thing you need to do is to specify mappings between files of a local and remote project. In this step, you need to choose the interpreter used to run a remote application.Ĭlick OK and select the added SDK in the Ruby SDK and Gems page. If you specified a path to the version manager executable in the previous dialog, RubyMine suggests selecting the required Ruby interpreter. In this tutorial, we use rbenv on a remote machine.Īfter you have specified all the settings, click OK. Ruby or version manager path: Here you should specify the path to the Ruby interpreter or the version manager executable. SSH configuration: Click the ellipsis button to create an SSH configuration for connecting to a remote machine. In the invoked dialog, select SSH Credentials and specify parameters in the following way: Open the Settings dialog Ctrl+Alt+S, go to the Language & Frameworks | Ruby SDK and Gems page, click the button and select Remote Interpreter or Version Manager from the list: In this part, we’ll configure a remote interpreter using SSH. After performing the required steps, use the rails server command to run an application: Clone a project on a local machineĪfter running the sample application on a remote machine, launch RubyMine and open the same application on a local machine using this instruction: Clone a repository from the Welcome Screen. To do this, connect to a remote machine and use instructions from the Getting started chapter. Clone and run a remote applicationįirst of all, we need to clone and run the sample application on a remote machine. On both machines, we’ll use the jetbrains user’s home directories to store source code. In our tutorial, the remote computer has the sample-web-server name.įor the remote macOS machine, LLDB should be installed. Note that GDB should also be installed on a remote machine. Remote machine: The Ubuntu machine with enabled SSH access and the Ruby interpreter installed. Local machine: Mac with macOS, with RubyMine installed. In this tutorial, we'll use two machines to demonstrate debugging of the remote application: In this topic, we’ll use this capability to debug a sample Rails application running on a remote machine. This capability allows you to debug applications that cannot be launched directly from the IDE. RubyMine enables you to attach to a running process on a local or remote computer.
0 Comments
Leave a Reply. |