How to automate publishing storefronts? #62
-
|
So generally what I want to do is writing a script to automatically publishing storefronts with my own website templates(html and css files) with customized part like brand name or products' names, etc. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
As of now, you can only have one hosted storefront per Swell store, but you can host storefronts in 3rd-party hosting vendors. Those vendors might support multiple websites per project. As a reference, you can check out here how Horizon can be hosted on Vercel. This process should be similar for different apps/templates you might have. |
Beta Was this translation helpful? Give feedback.
-
|
Just thinking out loud, Does git submodules solve your problem for the time being? Basically, you will have a parent repo that contains all your html and css files with base configs like brand names or products' names, etc. @RussellSlayton Would this method help you? |
Beta Was this translation helpful? Give feedback.
Just thinking out loud, Does git submodules solve your problem for the time being?
Basically, you will have a parent repo that contains all your html and css files with base configs like brand names or products' names, etc.
You can have an individual repo for each storefront containing the parent repo as the git submodule along with the configs that override the parent repo.
So, whenever you make a change in the base repo, you would also need to pull and update your submodules and push it back to publish your storefront. In this way, you will also get control over individual storefronts when publishing your styling changes.
@RussellSlayton Would this method help you?