Updated directions now that the original post’s PR is merged in.
- Add
node_modules/
to the Pantheon project repo’s.gitignore
- Clone Sage 10 in themes folder
git clone https://github.com/roots/sage.git
cd sage/
rm -rf /.git
rm -rf /.github
yarn && composer install && yarn build
- Update
config/view.php
to,'compiled' => wp_upload_dir()['basedir'].'/storage/framework/views',
-
mkdir ../../uploads/
(if it doesn’t exist) mv storage/ ../../uploads/storage
ln -sfn ../../uploads/storage
composer install --no-dev
- Edit
.gitignore
in theme and removevendor/
andpublic/
folders from it git add -f vendor/
git add -f public/
- Updated local url in
webpack.mix.js
(for Lando or Localdev) - Git commit all these changes
- SFTP Mode: Upload
storage/
folder to/code/wp-content/uploads
- Git push!