# Sage 10 on Pantheon, a guide and method

**URL:** https://discourse.roots.io/t/sage-10-on-pantheon-a-guide-and-method/19978
**Category:** sage
**Tags:** sage10
**Created:** 2021-01-30T19:31:27Z
**Posts:** 18
**Showing post:** 6 of 18

## Post 6 by @frankstallone — 2021-02-22T22:53:20Z

Updated directions now that the original post’s PR is merged in.

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. `yarn && composer install && yarn build`
7. Update `config/view.php` to, `'compiled' => wp_upload_dir()['basedir'].'/storage/framework/views',`
8. `mkdir ../../uploads/` (if it doesn’t exist)
9. `mv storage/ ../../uploads/storage`
10. `ln -sfn ../../uploads/storage`
11. `composer install --no-dev`
12. Edit `.gitignore` in theme and remove `vendor/` and `public/` folders from it
13. `git add -f vendor/`
14. `git add -f public/`
15. Updated local url in `webpack.mix.js` (for Lando or Localdev)
16. Git commit all these changes
17. SFTP Mode: Upload `storage/` folder to `/code/wp-content/uploads`
18. Git push!

---

_[View the full topic](https://discourse.roots.io/t/sage-10-on-pantheon-a-guide-and-method/19978)._
