I am using Aptana Studio 3 and RubyMine 5.0.2 for Rails development. I have to switch between CentOS 6.3 and Window 7 environment, aside with github.com for version control, sometimes they are difficult to sync and debug Rails projects in CentOS 6.3.
Gradually I summarized up some tips to operate conveniently. Here are some sumup:
1. Use Windows’ RubyMine IDE to debug Linux Rails projects
- The IDE is JetBrain’s RubyMine in Windows 7;
- While the codes are in CentOS.
In this case I use Windows’ network mapping tool to map the CentOs directory to Windows local virtual drive, such as ‘Y’, or ‘Z’ disk.
Windows Explorer -> Tools -> Map network drive…
Do the configure:
to connect the server to local Y drive.
(2) Create Rails Project:
Then, in JetBrains RubyMine 5.0.2
File -> New Project ->
in ‘Create New project’ screen:
Project name: linx_ruby_project
Location : Y:/ruby_project
Project type: Rails application
This way, in Windows’ RubyMine IDE, we can code/debug Rails codes in CentOS in Real-time.
2. Change Aptana 3 themes
I prefer to use Aptana Studio 2 theme. To change it, Here is my steps in Aptana IDE:
Window -> Preferences -> Aptana Studio -> Themes -> Aptana Studio 2.x
3. use Samba service:
I don’t have much time to do the Samba stuff, however, there are a lot of resources in the web for access Linux resources by using Samba protocal.
I just list the basic steps to start Samba Service.
// 1. config samba services
// 2. run samba daemon
$ sudo service smb start
Then, in Windows,
to access the resources in CentOs server.
4. Access github resource from RubyMine
(1) Download and install ‘Github’ for Windows:
Applications -> GitHub for Windows -> to Download ‘Github’ for Windows
git clone the projects whatever you want to locally.
(2) import to RubyMine IDE:
In RubyMine IDE, to create project for the cloned projects.
(3) in RubyMine IDE menu:
-> Checkout from Version Control -> GitHub
Git Repository URL: email@example.com:williamjxj/sample.git
Parent Directory: C:\RubymineProjects\
Directory Name: sample
Then click ‘Clone’.