views:

256

answers:

4

I am developing some Python programs that I'm running on a remote Ubuntu Linux server (hosted on Slicehost). I would like to work on the source in an IDE on my Windows Vista PC, and have all file modifications sent directly to the Linux box without my intervention (i.e. without having to manually SFTP the files each time I change them). What is the very easiest way I can do this?

A: 

You could install cygwin and then have rsync run on cron every minute.

Or you could use Netdrive to access the server via FTP like a local disk:

http://tech.xptechsupport.com/netdrive-turn-your-ftp-into-a-drive-letter.html

Or you may be able to achieve something similar using cygwin and FUSE - you can on linux, but never tried it on cygwin.

Also, would it not be easier to set up a full dev environment locally? Maybe using a virtual machine? It'll be much quicker for testing. And then you can set up a shell script to transfer the current version to the slicehost server.

benlumley
Net Drive while good at the time, is outdated and slow.
Unkwntech
yes, thats what i suggested others.
benlumley
+1  A: 

Install Samba and OpenVPN on the server, and OpenVPN on the client. Setup Samba to share the directory tree you're interested in, and access it over the VPN for security. Perhaps Vista has non-sucky WebDAV support by now, and you could use WebDAV over HTTPS, but it was always crap under XP.

Ben's suggestion of a local dev environment using a VM is also a winner.

womble
+1  A: 

WinSCP includes a basic remote file editor, though if you want to use a proper IDE for your development this won't be much help.

I'd suggest you run a version control system like subversion, which would allow you to write a post-commit hook to automatically rsync your code the server with each commit.

Paul Dixon
WinSCP is good, but will not allow you to access the files through your IDE like SFTPDrive does
Unkwntech
+1  A: 

Use PuTTy and SFTPDrive.

PuTTy is an SSH client, and SFTPDrive ($39 USD) will allow you to mount your remote file system locally as a drive letter.

Unkwntech
@Paul Dixon, thanks for adding the price.
Unkwntech
No worries. Interesting product, not come across it before.
Paul Dixon