Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Is it possible to get a "mirror" command to keep the remove server clean?

    Surfer
    surfer mirror rsync deploy
    3
    5
    149
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      msbt App Dev last edited by

      Hi there! Having surfer at the end of a build pipeline is quite nice, but over time the instance grows bigger, even though some assets should no longer be there because they got deleted earlier in the process.

      Sure, we could do a surfer del -r -y / before deploying, but this could result in temporary 404s on bigger sites. Some rsync like option would be awesome, is that something that would be in the scope of the surfer app? If not, how is everyone else keeping their servers clean?

      robi 1 Reply Last reply Reply Quote 0
      • robi
        robi @msbt last edited by

        @msbt Sounds like you need your final assets copied from the build surfer to a deployment surfer which is new and clean.

        Then revert the build one or delete and use a fresh one.

        Life of Advanced Technology

        1 Reply Last reply Reply Quote 0
        • nebulon
          nebulon Staff last edited by nebulon

          Have you tried to use the --delete option of surfer put ... ? This should behave like an rsync with remote deletion.

          M 1 Reply Last reply Reply Quote 0
          • M
            msbt App Dev @nebulon last edited by

            @nebulon haha oh boy, this is embarrassing, never checked the surfer get --help, thanks 😄

            nebulon 1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff @msbt last edited by

              @msbt I also forgot about that option actually, such a long time ago when I wrote all that code 😄

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB