# How to best deploy to staging/production with Bedrock & Sage

**URL:** https://discourse.roots.io/t/how-to-best-deploy-to-staging-production-with-bedrock-sage/20448
**Category:** sage
**Tags:** sage9
**Created:** 2021-03-26T11:17:01Z
**Posts:** 5
**Showing post:** 2 of 5

## Post 2 by @strarsis — 2021-03-26T14:54:34Z

So you want to deploy on a shared hosting/non-VPS/non-Trellis system,

This theme zip build script for Sage 9 or 10 could be helpful:

> [@Deployment on Shared Hosting](https://discourse.roots.io/t/deployment-on-shared-hosting/20399/3):
>
> IMHO it could be quite helpful to add an “eject” task to Sage that automatically creates a minimal theme ZIP as build artifact. Note: node\_modules/ is only required for building the theme - it is not needed and should not be needed by the theme during runtime. If there are any files that should be available for the theme, either add them using webpack (e.g. imported SASS, url(...)) or copy them from node\_modules/ into dist/ or - for some cases - resources/. For Sage 10 themes: #!/bin/sh echo …

---

_[View the full topic](https://discourse.roots.io/t/how-to-best-deploy-to-staging-production-with-bedrock-sage/20448)._
