yesthattom: (Default)
yesthattom ([personal profile] yesthattom) wrote2007-10-01 05:52 pm

editing files on an FTP server

I need a better way to edit files on my web sites that are hosted at services that only support ftp. I am on a Mac. The download-edit-upload cycle sucks. Yes, I've automated it and it still sucks. I even use CyberFrogFTP and that does the download-edit but I have to save then click upload then check to see if the files it selected are right blah blah blah. Mac's FTPFS is read-only. Any tips? This is SO FING FRUSTRATING!

fuse

[identity profile] chrisla.livejournal.com 2007-10-01 09:56 pm (UTC)(link)
I think there are FUSE filesystems for FTP. I would imagine that would allow you to connect to your FTP site as a filesytem and edit them like they were local.

Re: fuse

[identity profile] yesthattom.livejournal.com 2007-10-02 01:17 am (UTC)(link)
Do you know that it supports read/write operations or are you just guessing?

Re: fuse

[identity profile] chrisla.livejournal.com 2007-10-02 03:24 am (UTC)(link)
I checked, fuseftp does.

http://wiki.thiesen.org/page/Fuseftp

Re: fuse

[identity profile] yesthattom.livejournal.com 2007-10-02 10:13 pm (UTC)(link)
Awesome! Thanks!

Tom

[identity profile] obra.livejournal.com 2007-10-01 10:30 pm (UTC)(link)
Why aren't you editing locally version controlled files with a "publish" step (which might just be a makefile wrapper around a bulk ftp upload?

[identity profile] yesthattom.livejournal.com 2007-10-02 01:15 am (UTC)(link)
Because I'm in hell.

This is for my one site where instead of keeping things in SubVersion and pushing out to the web site, I have to edit things there (and make regular backups... which get checked into SubVersion).

WinSCP

[identity profile] jorhett.livejournal.com 2007-10-01 10:32 pm (UTC)(link)
WinSCP with keep-up-to-date mode. Or just run "synchronize" every once in a while, either way. It supports FTP now too.

And jesus, Tom, what are you still doing FTP for? I actually disabled FTP on my colo box (which has about 100 friends domains on it) 2 years ago, and so far nobody has a problem with that. Do you still use telnet too? *giggle*

I can't read.

[identity profile] jorhett.livejournal.com 2007-10-01 10:36 pm (UTC)(link)
Sorry, of course you use a mac. Duh ;-)

Use Cyberduck. You can edit files directly, no download/upload nonsense.
(er, rather, it does it for you and appears seamless)

Re: I can't read.

[identity profile] yesthattom.livejournal.com 2007-10-02 01:28 am (UTC)(link)
I tried CyberDuck and that function didn't work for me. Maybe I was trying to get it to work with vi or something.

However, I just downloaded the newest version AND TextWrangler and they seem to work! Thanks!

Re: I can't read.

[identity profile] whitebird.livejournal.com 2007-10-02 04:53 am (UTC)(link)
I know that BBEdit, TextWrangler's bigger brother will do direct FTP open and saves without the need for an FTP program passthrough. It's possible that TextWrangler will do so as well.

If not, get BBEdit anyways. It's a very very nice text editor for the Mac. You can even initiate it from the command line.

a clue.

[identity profile] jorhett.livejournal.com 2007-10-01 10:37 pm (UTC)(link)

[identity profile] dossy.livejournal.com 2007-10-01 10:38 pm (UTC)(link)
Uh, what editor do you use? Both vim and emacs have extensions of some kind that allow you to edit a URI, which it then goes off and fetches, and when you save, it pushes the new copy back to the remote location.

That's what I'd do, if I were you, anyway. Use vim and ":e ftp://host/path/to/file" ...

[identity profile] penk.livejournal.com 2007-10-01 11:29 pm (UTC)(link)
As someone who has hand-coded websites for ages and ages, my advice is?

Stop :)

Content management systems have so far surpassed the local-edit-then-upload process, it makes almost no sense to do local design and work anymore.

We use Drupal and Movable Type like crazy. Any static pages I have I just edit online now using vim, but they are limited to scripts and short simple stuff.

[identity profile] mbarr.livejournal.com 2007-10-02 05:19 am (UTC)(link)
well.. i was going to just tell you textwrangeler does it for free, with support for FTP & SFTP.. but the rest of the class told you that.

Even so... you can't just keep a copy on your local machine, and view it through local apache, and then upload when you're happy? (I've done both- sometimes it's just not worth keeping the local copy :)

[identity profile] mbarr.livejournal.com 2007-10-02 05:23 am (UTC)(link)
Oh-- and what I was really going to say: Check out MacFusion. (it's fuse for mac, with a nice gui, and adds r/w FTP & SFTP.