• DirigibleProtein@aussie.zone
    link
    fedilink
    arrow-up
    3
    ·
    1 month ago

    If anything goes wrong with the deploy script, such as failing tests, no harm will be done because the script exits upon the first error encountered.

    How do you clean up? Once the deploy script is fixed, how do you know what’s been done and what needs redoing?

    Have you considered ansible/puppet/chef/salt — environments dedicated to deployment and cleanup, with idempotency to allow for fixing and repeating the deployment, across multiple operating systems and versions?

    • Aijan@programming.devOP
      link
      fedilink
      arrow-up
      4
      ·
      1 month ago

      Cleanup can be as simple as deleting the latest deployment directory, if the script gets that far. The article is about using built-in Linux tools for ‘easy’ application deployments. One can also use dedicated tools, as you suggested, to further automate the deployment process.