I’ve successfully provisioned and deployed a site updated from Sage 9 Beta 3 to Beta 4. Everything shows up green in the Trellis terminal. On development the site runs fine however when I navigate to the production webpage it says “Sage › ErrorAutoloader not found… You must run composer install from the Sage directory”. The same error appears when I try to use the WP cli on the server to change to a default theme for testing.
I’ve of course ran composer install and yarn build:production before deployment but I figure there’s something else going on here.
I ssh’d into the production server sql db and under options the “template” and “stylesheet” are set to “mytheme/resources”. The wp-admin is not accessible because of a server 500 error.
I managed to get my site back with rollback.yml (this works perfectly, thank you).
Hi @willneill, yes that same approach had fixed it back when I had this issue. I forgot to came back here to update the thread. I didn’t see in the docs it’s neccesary to do anything with build-before.yml, so that’s why the confusion. Thank you!
@ben or @swalkinshaw: perhaps a more prominent mention of the build-before file would be good in the Trellis documentation. Following the documentation step-by-step from what I’ve seen doesn’t appear to include this at the moment, which can lead to some stress for new roots users.