I recently learned about rsync to upload only changes. I was wondering if you use this or other tools to upload.
Ask YC: How do you upload to your web server?
1–10 of 49 posts
Re: Ask YC: How do you upload to your web server?
#2Re: Ask YC: How do you upload to your web server?
#3Are you using a repository to store your code? If so, you can check it out from the server and then copy it over.
Re: Ask YC: How do you upload to your web server?
#4server: $ 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")
Re: Ask YC: How do you upload to your web server?
#5Re: Ask YC: How do you upload to your web server?
#6i 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")
Heck, I use sshfs to mount my blog as a directory & edit files directly. rsync has also worked nicely for me in the past. But then, these are all sites that I either don't care about source control, or don't have git/hg available on the shared server.
Re: Ask YC: How do you upload to your web server?
#7Re: Ask YC: How do you upload to your web server?
#8bzr push to a REP on the server login over ssh on the server bzr export REP run the test suite on the server (last check) cp relevant files to PROD restart the server (FastCGI)
everything automated and sequential one failure -> process stops completely (never happened so far)
Re: Ask YC: How do you upload to your web server?
#9Re: Ask YC: How do you upload to your web server?
#10If you're deploying code, you really should be using Capistrano. Even if it is not a Rails project. It is a world of difference.