b0rk, (edited )
@b0rk@jvns.ca avatar

deleted_by_author

  • Loading...
    meejah,
    @meejah@mastodon.social avatar

    @b0rk My website runs like this, kind of.
    It has a bare git repository, and I use a "post-receive" hook there to re-start the services (and thus re-load the code).
    So deploying new content etc is "git push" (any errors from the remote scripts are echoed to the client doing the push).
    Takes a bit of setup, but IMO worth it here.

    mxk,
    @mxk@hachyderm.io avatar

    @b0rk I always switch between using buildin SCP remote access or git with post-recieve hooks for aromatic build/execution on the target.

    nemobis,
    @nemobis@mamot.fr avatar

    @b0rk On I just use fish:// in my editor.

    thaodan,
    @thaodan@mastodon.social avatar

    @nemobis @b0rk If sftp is enabled you can use that instead. Fish is more of a hack in case there's no sftp.

    tante,
    @tante@tldr.nettime.org avatar

    @b0rk sshfs to mount the remote folder locally and then use neovim?

    Of just use neovim's built-in scp feature?

    vim scp://user@myserver[:port]//path/to/file.txt  
    
    alexcg,

    @tante @b0rk will defo try the scp feature next time tho

    alexcg,

    @tante @b0rk sshfs has been a bit flaky in my experience. It works to mount the first time, but fails on subsequent mounts after network disconnect. That may be me not rtfming how to actually use it right though. It's only been a few times

    jeanjean,
    @jeanjean@framapiaf.org avatar

    @b0rk I guess you could mount your remote disk using sshfs and edit the code on your machine while running it remotely.

    quixoticgeek,
    @quixoticgeek@v.st avatar

    @b0rk isn't this a perfect use case for git?

    penguin42,
    @penguin42@mastodon.org.uk avatar

    @b0rk push it to a local git, and then push or pull that git from the other end

    codemonkeymike,
    @codemonkeymike@fosstodon.org avatar

    @penguin42 @b0rk yeya I agree, using git. Then being able to hook into actions to auto deploy when the code changes.

    I use deploybot for this

    davecturner,

    @penguin42 @b0rk +1 to this idea. I've tried other ways but almost always regretted not having a record of changes. History-rewriting (rebase and friends) is ok in this context tho.

    b0rk,
    @b0rk@jvns.ca avatar

    @penguin42 oops I wasn't clear -- I want it to sync every time I save. edited the post

    jokester,

    @b0rk @penguin42 a network filesystem mount? + a watcher on the remote end tha endlessly restart your program on vode update (if it's a script)

    stpaultim,
    @stpaultim@fosstodon.org avatar

    @b0rk

    Hmmm.... FTP .....??

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • slotface
  • kavyap
  • thenastyranch
  • everett
  • tacticalgear
  • rosin
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Youngstown
  • khanakhh
  • ethstaker
  • JUstTest
  • ngwrru68w68
  • cisconetworking
  • modclub
  • tester
  • osvaldo12
  • cubers
  • GTA5RPClips
  • normalnudes
  • Leos
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines