I’ve been trying to automatize a deployment workflow for Sage. I got my remote server on Digital Ocean running a regular WordPress install without Trellis nor Bedrock.
What I’ve tried so far is creating a
deploy command in a makefile that uses rsync to upload the changes, ssh’s to run
yarn run build:production and finally runs
wp blade compile to compile the cache. Problem is, I’m trying to run ‘yarn run build:production’ from the makefile too and it just doesn’t work. Yarn throws a ‘Node is required’ error which has to do with the available PATH when commands are ran with SSH in that way (i.e. without loading the interactive shell. Tried -t flag, doesn’t work either).
wp blade compile runs okay.
So I wanted to know if someone has a simple deployment workflow for sage that allows to run
yarn run build:production or what other deployment scrips/workflows are you guys using to deploy sage without ansible.