Mounts with sshfs

For a project I need some files to be edited my other people. I think this is a great way for using mounts, e.g. just put mount that folder from somewhere else and give them access to it with SFTP and whenever they change something hugo --watch would just rebuild this segment.

The other part of the site is maintained by me. Now I’m thinking if I can mount that content folder above with sshfs on my local setup. I’m not sure if that would work?

Sometimes I just want to build the entire site locally, that’s the reason why I’m asking and need this.

The default watcher uses native file system events, which I don’t think you’d get with sshfs, but you can poll for changes:

hugo --watch --poll 30s

… or something.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.