<br><br><div><span class="gmail_quote">On 2/7/07, <b class="gmail_sendername">s.ross</b> <<a href="mailto:cwdinfo@gmail.com">cwdinfo@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've hit on a development methodology where when I want to modify one<br>file on a server quickly, I make the changes to my local copy, then<br>scp it to the remote machine. That saves me the overhead and security<br>
problems of having an (S)FTP server running on my production box.<br>Which brings me to the question:<br><br>Is there some really easy way to build a command (or is there one<br>already built) that will scp a file to a server relative to its
<br>location in a project? For example, if my DocumentRoot on the server<br>is /var/www/myfinewebsite and I want to modify a file like includes/<br>stupid_php_why_isnt_this_rails.php on my local machine, I'd like it<br>
to scp to uname@mydomain.com:/var/www/myfinewebsite/includes.<br><br>Is this something someone else has done? Any thoughts about this<br>practice?<br><br>Thanks,<br><br>Steve</blockquote><div><br><br>So having something that intelligently deals with local to remote paths is probably the tricky party here.  You probably don't want to type a remote path every time.  This might be a good time to try out MacFUSE and sshfs.  Mount your remote filesystem via ssh and edit files just like you would locally.  Of course, you are then working with live files, so beware.
<br><br><a href="http://code.google.com/p/macfuse/">http://code.google.com/p/macfuse/</a><br><br>Pat<br> </div><br></div>