[TxMt] scp for TM?
Patrick Berry
pberry at gmail.com
Wed Feb 7 22:17:39 UTC 2007
On 2/7/07, s.ross <cwdinfo at gmail.com> wrote:
>
> I've hit on a development methodology where when I want to modify one
> file on a server quickly, I make the changes to my local copy, then
> scp it to the remote machine. That saves me the overhead and security
> problems of having an (S)FTP server running on my production box.
> Which brings me to the question:
>
> Is there some really easy way to build a command (or is there one
> already built) that will scp a file to a server relative to its
> location in a project? For example, if my DocumentRoot on the server
> is /var/www/myfinewebsite and I want to modify a file like includes/
> stupid_php_why_isnt_this_rails.php on my local machine, I'd like it
> to scp to uname at mydomain.com:/var/www/myfinewebsite/includes.
>
> Is this something someone else has done? Any thoughts about this
> practice?
>
> Thanks,
>
> Steve
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.
http://code.google.com/p/macfuse/
Pat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070207/c3def03e/attachment.html>
More information about the textmate
mailing list