From b0d12b11f3f0b814d4bb9bb84bc53c8aaab6643f Mon Sep 17 00:00:00 2001 From: kawaiipunk Date: Tue, 1 Oct 2024 16:38:22 +0100 Subject: [PATCH] Updated README with better instructions --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 14bd391..d012edd 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,21 @@ To use it: 3. Create and deploy a Co-op Cloud Wordpress app 4. Edit `.env.sample` to set `SITE_URL` (and customise `PROJECT_NAME`, if needed) + - Change USERNAME to whatever the wordpress admin username is / should be + - Set SITE_URL to the live site URL + - Set PROJECT_NAME to some identifier for the project 5. Make sure `.drone.yml` has the right settings for the server you'd like to - deploy to + deploy + - change host to the FQDN of the host, likely smol-wp.autonomic.zone + - set service to the docker service name, usually _app so like display_distribute_com_app + - update source and exec_pre to the path to the theme + - comment exec: composer install if composer isn't in use + - set `deploy_key: from_secret:` to the secret name of the SSH key to access the server. this requires logging into drone as autonomic admin, then checking "organisation secrets" on the repo settings page of any repo in the same org. or you can use drone CLI and do drone orgsecret ls 6. Add any custom plugins / themes to `wp-content` + - Copying / moving files into the repo in wp-content, and possibly / probably excluding them from .gitignore 7. "Activate" this repository in Drone + - e.g. click "activate repository" here https://drone.autonomic.zone/autonomic-cooperative/display-distribute/settings +8. Commit to the repo to test and monitor the drone interface to troubleshoot ---