Earlier quoted context omitted.
Yes. I am using SVN to collaborate with my friends. How do you copy easily?
Commit your changes on your local machine then SSH to your server and do an svn update.
Ask YC: How do you upload to your web server?
31–40 of 49 posts
Re: Ask YC: How do you upload to your web server?
#32It's not very professional, but for our needs it's perfect.
Re: Ask YC: How do you upload to your web server?
#33For 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.
rsync -azP local_dir -e ssh user@host.com:remote_dir
Re: Ask YC: How do you upload to your web server?
#34Re: Ask YC: How do you upload to your web server?
#35Git or SVN using Capistrano. If you're deploying code, you really should be using Capistrano. Even if it is not a Rails project. It is a world of difference.
Re: Ask YC: How do you upload to your web server?
#36The update command does something like this:
* Check out all pertinent application files from the repository.
* Add any production specific files, for example build number or database setups
* Combine, compress, and number all Javascript and CSS files (combined.384.css can be cached forever, on update it becomes combined.385.css)
* Tar and gzip the production files
* Find all EC2 servers that need to be updated
* Upload the gzipped files
* Stop apache
* Remove old files on the server(s)
* Unzip the new files
* Start apache
Re: Ask YC: How do you upload to your web server?
#37Re: Ask YC: How do you upload to your web server?
#38After I'm done editing my pages, I save them to a 5.25" floppy and mail it via USPS to GoDaddy in Arizona with the instructions to place on my webserver.