Sage 9 on WPEngine

If you’re using sage 10, you have to contact support after updating your config/view.php to ‘compiled’ => ‘/tmp/sage-cache’ a senior tech told me that higher level techs have to add the directory to root level which customers/lower tech support people don’t have.

Copy and pasted directly form tech support chat:

"So normal tech’s don’t have the permissions to create the folder where it needs to be made. So you’ll need to request to be escalated.

You can just say that we need to set up Sage/Blade compiler cache files, and I need to be escalated for this."

Can confirm, as in today 26th Feb 2021,
This solution is working.

Initial problem prior changing view.php, I’ll get white screen.

After changing the view.php

Confirmed. This worked for me and allowed me to duplicate and use template-custom.blade.php.
To echo what I did:

in sage > config > view.php

change: 'compiled' => wp_upload_dir()['basedir'].'/cache',
to: 'compiled' => '/tmp/sage-cache',

Everything is working perfectly.

Not a fan of pushing from LocalWP TO WPE. It works, but it’s still a black box.

I’m having this issue today. The white screen of death after migrating an entire WP Sage website from Digital Ocean to WPEngine. I tried to do this but without success. Could anyone help?
The website is here: https://llgri.wpengine.com/

@matheus.digital Try going to config/app.php and changing ‘preflight’ parameter to true.
So, this:
‘preflight’ => env(‘WP_ENV’, ‘production’) !== ‘production’,

becomes this:
‘preflight’ => true,

I’m locking this old topic related to Sage 9. Please open a new one if necessary.