Updated README with better instructions

This commit is contained in:
KawaiiPunk 2024-10-01 16:38:22 +01:00
parent 3e92ae47a5
commit b0d12b11f3
Signed by: kawaiipunk
GPG Key ID: 8664A690E094B219

View File

@ -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_name_snake_case>_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
---