My main devel machine is an OS X notebook. Additionally I have a PC notebook running Ubuntu 12.04 from a USB drive (cannot use the internal harddisk). Also I have several Ruby on Rails projects being developed on the OS X notebook. They are managed using Git.
Since the PC has a faster CPU I would like test runs (using rspec-rails) to run on the PC notebook. I have installed a complete RoR environment including Postgres database on the Ubuntu PC. However, I do not want to have a complete copy (or checkout (or repository)) of each app on the PC since the test runs should happen before committing changes to Git.
I tried various networking solutions and ran "rake spec" on the mounted project directories but all failed:
using SFTP (fuse) mounts:
Operation not supported - /home/ubuntu/.gvfs/SFTP on osx.local/Users/Jens/Sites/rails-project/log/development.log
using Samba to mount:
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/settings.rb:146:in 'read': Invalid argument - /home/ubuntu/.gvfs/dor-bort on osx.local/.bundle/config (Errno::EINVAL)
using AFP to mount, after some time the rspec process freezes and
gvfs-afp-browsestarts eating up my CPU.
Are there any other easy solutions available to share a RoR project directory between machines? (NFS is not an option because I tend to forget switching off network shares on my OS X notebook, and -afaik- NFS has no real security.
rsync is not an option because it requires a local cache which I'd like to avoid. Some of my projects work on huge data files (>>100M) which change all the time, and I don't want to overload the PC's USB stick with this data.)
I would appreciate any ideas!