Man - I'm low class apparently as I'm apparently the only one who uses Filezilla or just a plain FTP client. I support about 30 domains and this route helps me. I do have some internally-written apps that will upload files to a lot of different domains at once.
Ask YC: How do you upload to your web server?
41–49 of 49 posts
Re: Ask YC: How do you upload to your web server?
#42Earlier quoted context omitted.
Commit your changes on your local machine then SSH to your server and do an svn update.
one problem with this method, is that your web directory will have all of the .svn folders sprinkled throughout your subfolders. svn export avoids this issue.
Re: Ask YC: How do you upload to your web server?
#43Earlier quoted context omitted.
Commit your changes on your local machine then SSH to your server and do an svn update.
one problem with this method, is that your web directory will have all of the .svn folders sprinkled throughout your subfolders. svn export avoids this issue.
Re: Ask YC: How do you upload to your web server?
#44i use mercurial, assuming your base directory is /www/pages (lighttpd), initially: server: $ mkdir /www/pages/project $ cd /www/pages/project $ hg init localhost: $ cd /path/to/your/project $ hg init $ hg add * $ hg commit -m "message" $ hg push ssh://usr:pwd@123.123.123.123//www/pages/project afterward it's just the localhost (ignore "$ hg init")
hg qpop -a ; hg pull ; hg update $1 ; hg qpush -a
The $1 is a branch or tag argument given to the Bash script. That way you can easily specify a particular version to update to (or rollback to!) on the command line.
The qpop and qpush will rebase any MQ patches you've made, e.g. local configuration changes, hacks, etc.
More on rebasing applied patches with Mercurial: http://hgbook.red-bean.com/hgbookch12.html#x16-28900012.8
Re: Ask YC: How do you upload to your web server?
#45> svn update
Re: Ask YC: How do you upload to your web server?
#46For my personal site, I use rsync, and I keep the command in a makefile so I don't have to remember it (I also use the makefile to generate the static pages from templates). It looks like this: sync: rsync -az --progress ./ user@host:public_html/ .PHONY: sync But for anything significant, I use a VCS, currently svn or git.
You should really use ssh with that. Not much more complex: rsync -azP local_dir -e ssh user@host.com:remote_dir