Latest Pantheon Sage 10 Setup directions
Version 3.0-beta - Mar 5, 2021
- 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
rm -rf /.gitignore
composer install --prefer-dist --no-dev
yarn install && yarn build && yarn build:production
- 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
mv bootstrap/cache ../../uploads/bootstrap/cache
cd bootstrap/
ln -sfn ../../../uploads/bootstrap/cache
composer install --no-dev
- 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
- SFTP Mode: Upload
bootstrap/cache/
folder to/code/wp-content/uploads
- Git Mode: Git push!