Ask YC: How do you upload to your web server?
11–20 of 49 posts
Re: Ask YC: How do you upload to your web server?
#12Re: Ask YC: How do you upload to your web server?
#13Use SVN and setup a postcommit thingy that copies the new files to your public directory whenever you do an update.
You may choose to use a tool to run your update scripts automatically and create configuration files correctly, but you'll want to think it through in advance. A particular problem I have is that certain sensitive passwords should not exist anywhere but in the locations they are required, so even pre-created configuration files still require me to manually enter the password once installed on the server.
Re: Ask YC: How do you upload to your web server?
#14Yes, I'm going against the grain by using Puppet instead of Capistrano. All the Rails people are probably going to crucify me, but I personally think this setup works quite well.
Re: Ask YC: How do you upload to your web server?
#15Use WinKey to map win-P to project.bat.
project.bat: rsync -Crltvz -e ssh /cygdrive/c/personal/project/ me@mydomain.com:/bigfiles/project
then I can just hit win-P to force the rsync. Runs in a couple seconds even with hundreds of files.
But my favorite if I don't need version control is to use http://www.sftpdrive.com/">sftpdrive to mount the remote server as a local disk. It is $39, but is probably my favorite windows software. I've done the Samba thing and like this much better.
Re: Ask YC: How do you upload to your web server?
#16Git 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?
#17Git 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.
It turns updating your server from a mild headache to one line that you actually enjoy typing in.
Re: Ask YC: How do you upload to your web server?
#18Re: Ask YC: How do you upload to your web server?
#19Re: Ask YC: How do you upload to your web server?
#20Git 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.