# 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:** 5 of 18

## Post 5 by @frankstallone — 2021-02-22T22:49:24Z

Everything seems to work fine when I have just `storage/`. I stated a fresh new project with the `master` branch now that @Log1x’s PR was pulled in.

I did run into an issue adding `log1x/sage-svg`:

 ![Screen Shot 2021-02-22 at 5.48.27 PM](https://discourse.roots.io/uploads/default/original/2X/6/6f27bb3611f23b73416b04cf4c6a4311501b4ca2.png)

On the left is my local with Lando and `yarn start`. The SVG loads just fine with the directive `@svg('svg.bars', 'w-5')`. On the right is Pantheon. Frustrating. I really love working in Sage but this is rough.

What got me to a broken SVG state:

1. `composer require log1x/sage-svg`
2. Create `resources/svg` folder
3. Add `.copyDirectory('resources/svg', 'public/svg');` to `webpack.mix.js`
4. Test functionality adding `@svg('svg.bars', 'w-5')` to a blade template
5. `yarn build:production && composer install --no-dev`
6. Commit all changes & push

EDIT: I can get this working by replacing the above directive with the helper `<?php $bars = get_svg('svg.bars', 'w-5'); echo $bars ?>`. I would prefer the directive, and I am using other directives with `log1x/sage-directives` just fine locally and on Pantheon. I also updated the `log1x/sage-svg/svg.php` to look in the `public/` folder instead of the `dist/` folder. It was working before, and after locally but neither on Pantheon.

---

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