From d8c7cbbd99ddac8f8cd79e2d048b2a5a6501fa70 Mon Sep 17 00:00:00 2001 From: Jelle Sebreghts Date: Thu, 17 Nov 2022 09:34:21 +0100 Subject: [PATCH] Improve documentation and default behavior Improve documentation by referencing the robo-digipolis-deploy documentation about providing database connection details. Fix a broken anchor link. By default, create a backup and rollback during deploy. Add documentation for the option in the `properties.yml` documentation. --- README.md | 11 +++++++++-- src/default.properties.yml | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index afaf6e0..538e9cf 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ Used by digipolis, generic commands/skeleton do execute deploys and syncs betwee ## Getting started +To let this package know about your database configuration, please read +[the robo-digipolis-deploy package's documentation] +(https://github.com/district09/robo-digipolis-deploy#use-events-for-default-configuration). + We make a couple of assumptions, most of which can be overwritten. See [default.properties.yml](src/default.properties.yml) for all default values, and [the properties.yml documentation](#propertiesyml) for all available @@ -80,6 +84,9 @@ remote: # should get symlinked to since the uploaded files are shared across releases. # See `symlinks` below. filesdir: '${remote.appdir}/files' + # Whether or not to create a backup (and corresponding restore task on + # rollback during deploy. + createbackup: true # The folder where to store backups that are created before running updates. backupsdir: '${remote.appdir}/backups' # The symlinks to create when deploying, in format target:link @@ -566,9 +573,9 @@ machine. The handler for this event should return a task that will switch the `current` symlink to the previous release (mostly used on rollback of a failed release). -The difference with the (digipolis:remote-switch-previous)[#digipolis-remote-switch-previous] +The difference with the (digipolis:remote-switch-previous)[#digipolisremote-switch-previous] event is that this will be executed directly on the host, and thus doesn't need -an ssh connection, while the (digipolis:remote-switch-previous)[#digipolis-remote-switch-previous] +an ssh connection, while the (digipolis:remote-switch-previous)[#digipolisremote-switch-previous] will be executed from your deployment server, or your local machine, and thus will need an ssh connection to the host. diff --git a/src/default.properties.yml b/src/default.properties.yml index 989066d..25ed92b 100644 --- a/src/default.properties.yml +++ b/src/default.properties.yml @@ -7,7 +7,7 @@ remote: configdir: '${remote.appdir}/config' filesdir: '${remote.appdir}/files' backupsdir: '${remote.appdir}/backups' - createbackup: false + createbackup: true symlinks: - '${remote.webdir}:${remote.currentdir}' opcache: