csnyder wrote:
On 8/17/07, Donna Marie Vincent <[EMAIL PROTECTED]> wrote:
In order to upload files to the website, I have to do this:

1. Use WinSCP to log in to the server as myself and transfer files from my
PC to my home directory on the server.

2. Use PuTTY to log in to the server as myself, then su as root, and from
the command line move the files from my home directory to the website's
directory.
$ svn commit -m "Important bugfixes" myproject

Now ssh to webserver:

$ su -
# cd /usr/local/myproject
# svn up

The part about no ftp access and no root login is not unreasonable,
it's standard practice for many production systems. The part where you
move files around rather than using version control is a recipe for
disaster.
Couldn't agree more. Consider looking into Bazaar (distributed version control). Once you've set it up on your desktop and server, you can:

$ bzr -ci -m "Important bugfixes"
$ bzr push
// which will use your 'remembered' sftp address

// and then on the server,
# bzr pull
// which grabs the latest from the 'remembered' home directory

Bazaar: http://bazaar-vcs.org/

Mark
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to