Question

I am trying out Rubymine (current version - 6.0.3). My client is Windows and I am connecting to a remote linux host where my Ruby stack is running. I am working on a project that is stored in a git repo so I have cloned the repo both on the Windows client and on the linux box where the project runs.

  1. It seems like a downside to have to checkout files locally & remotely separately - am I missing something or is this an unfortunate limitation to Rubymine?
  2. How should I create a new branch and have it be the current branch on both the Windows client & the linux server? It seems to me this involves many steps: Create branch locally, push to github, pull to the server, and then checkout that branch. Ouch!

Thanks for any Rubymine tips you may have.

Was it helpful?

Solution

Usually your local machine should be the only one having to manage the git repository. Use the Deployment (File > Settings > Deployment) feature of IntelliJ (or RubyMine) to keep your server's files up to date by directly uploading them whenever you change and save a file. Set it as default to have it do this automatically. Adapt the options to your likings as to when it should be uploaded, overwrite settings and so on.

See here for more instructions, although the setup is pretty straightforward:

http://blog.jetbrains.com/ruby/2011/07/deployment-from-rubymine-sync-files-via-ftpsftp-etc/

You can then access the remote server on a tab on the right hand side. From there, you can download or sync files with your local filesystem with the rightclick menu. You can also upload your local files manually as is usually needed when first setting up a project by rightclicking on your own files to the left.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top