FTP Synchronise
July 20, 2008 7:45 AM
Subscribe
How do I do a one-click ftp synchronisation and server restart - using only free software?
Here is my situation - I am using eclipse to develop a django application, that is hosted on webfaction. Whenever I do a change and I want to test it on the server, I need to
1. Open my FTP client
2. Select the items or folders that have changed
3. Upload them
4. Open ssh and login
5. Navigate to my apache directory and restart it
Ideally, I would like to just push a button, wait a couple of minutes and everything is online. My idea at the moment is to install cygwin locally, and write some type of shell script that would do this for me - would this work, and if so, how would I do this?
I tried installing the ftp synchronisation plugin for eclipse, but it seems to have disappeared.
Is there any more clever way to solve this problem that I don't know of?
(I'm using Windows XP, by the way...)
posted by markovich to technology (8 comments total)
cd project/dir
svn up
apachectl restart
svn takes care of the delta changes, and source control is smart anyway. with cygwin, you could run the script locally with 'ssh root@myserver /project/update.sh', and you can even do ssh key exchange and make a shortcut so its one click.
i fucking love django btw
posted by Mach5 at 8:14 AM on July 20