Sage 10 on Pantheon, a guide and method

Latest Pantheon Sage 10 Setup directions
Version 3.0-beta - Mar 5, 2021

  1. Add node_modules/ to the Pantheon project repo’s .gitignore
  2. Clone Sage 10 in themes folder git clone https://github.com/roots/sage.git
  3. cd sage/
  4. rm -rf /.git
  5. rm -rf /.github
  6. rm -rf /.gitignore
  7. composer install --prefer-dist --no-dev
  8. yarn install && yarn build && yarn build:production
  9. Update config/view.php to, 'compiled' => wp_upload_dir()['basedir'].'/storage/framework/views',
  10. mkdir ../../uploads/ (if it doesn’t exist)
  11. mv storage/ ../../uploads/storage
  12. ln -sfn ../../uploads/storage
  13. mv bootstrap/cache ../../uploads/bootstrap/cache
  14. cd bootstrap/
  15. ln -sfn ../../../uploads/bootstrap/cache
  16. composer install --no-dev
  17. Updated local url in webpack.mix.js (for Lando or Localdev)
  18. Git commit all these changes
  19. SFTP Mode: Upload storage/ folder to /code/wp-content/uploads
  20. SFTP Mode: Upload bootstrap/cache/ folder to /code/wp-content/uploads
  21. Git Mode: Git push!
2 Likes