Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 35 Current »

Managing the development environment on virtual machines and remote hosts sometimes takes a lot of time and effort. This is why we've worked hard to let you add and set up a remote SDK. Then you can run, test and debug your remote app.

0. Prerequisites

  • Make sure your ssh-session to a remote host is open.
  • You will also need to open a local copy of a remote app you're going to work with.

1. Configure a Remote Host Access

Go toSettings - Deploymentand press+to add a new remote server access configuration:

Set up connection settings:

Switch to theMappingstab and fill in a path to a remote app:

2. Choose a Remote SDK

Now you can choose a remote SDK for your local copy of an app. Go toSettings - Ruby SDK and Gemsand pressAdd SDK.... ChooseNew remote...option:

Import your settings from a deployment server you've created (you'll also need to move your server to application level using one of two possible options):

Note you can use vagrant config to import a remote host settings as well.

Make sure remote Ruby interpreter path is correct:

When adding an rvm-based remote interpreter, it is important to specify the gem set in the Ruby interpreter path:

<rvm root>/gems/<gem set>

Remote SDK is now configured:

3. Synchronize Your Changes

To make your changes synchronized automatically go toSettings - Deployment - Optionsand setUpload changed files automatically to the default servertoAlways:

Please note, you can synchronize your files and folders manually or change the settings any time fromTools - Deploymentmenu. To browse remote host folders and files with color highlighting for synchronized ones go toTools - Deployment - Browse Remote Host:

4. Work with a Remote Application

Now all the changes will be synchronized with a remote app. You can also run and debug your application:

Note you should use the same port number that is used on a remote host for running the app on a localhost.

  • No labels