Skip to content

Instantly share code, notes, and snippets.

@Log1x
Last active January 10, 2024 17:30
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Log1x/4b0a661252686bc6f14bf54a4c714381 to your computer and use it in GitHub Desktop.
Save Log1x/4b0a661252686bc6f14bf54a4c714381 to your computer and use it in GitHub Desktop.
Envoyer Hooks for Bedrock+Sage w/ RunCloud

Envoyer Hooks for Bedrock+Sage w/ RunCloud

This is a simple breakdown of how I deploy Bedrock+Sage using RunCloud and Envoyer.

Hooks

Install Theme Dependencies

cd {{ release }}/web/app/themes/sage

composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader --no-scripts --classmap-authoritative

Check WordPress Installation

cd {{ release }}

wp core is-installed --skip-plugins --skip-themes
wp core update-db

Check Theme Assets

cd {{ release }}/web/app/themes/sage

cat public/entrypoints.json
cat public/palette.json

Run Acorn Commands

cd {{ release }}

wp acorn optimize

Purge RunCloud Cache

cd {{ release }}

wp runcloud-hub purgeall
wp runcloud-hub update-dropin

Linked Folders

  • From: web/app/uploads
  • To: shared/uploads

Optional Deploy Command

Screenshot

Envoyer Hooks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment