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 /.gitrm -rf /.githubyarn && composer install && yarn build- Update
config/view.phpto,'compiled' => wp_upload_dir()['basedir'].'/storage/framework/views', -
mkdir ../../uploads/(if it doesn’t exist) mv storage/ ../../uploads/storageln -sfn ../../uploads/storagecomposer install --no-dev- Edit
.gitignorein 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!