v1.1.1 #13
Replies: 3 comments 7 replies
-
Hi! I have a problem with the npm/vite/shopify cli setup in this theme which affects my workflow. I have connected the theme to my shopify store through Shopify's Github App. I have a github repo for the project with two branches, develop and master, which corresponds to development environment and production anvironment in my shopify.theme.toml. I run Shopify CLI 3.0. As there's no theme editor for local environment any longer in Shopify CLI 3.0, I have to use the editor for the deleopment theme in my Shopify store. But as I work on the sections/snippets/styling with Tailwind etc in my local environment the files are overriden all the time. Or edits from Shopify editor isn't updated locally. Do you have any recommendations in workflow using your theme? |
Beta Was this translation helpful? Give feedback.
-
Also, it seems like the setup runs on content from production theme even though I run |
Beta Was this translation helpful? Give feedback.
-
@1dagranholm One of the popular deployment conventions is "Content goes down, Files go up" (or whatever terms you wanna use). I concur with what @squidiw said. My deployment flow is pretty different depending on whether i'm pre or post-launch. Pre-launch (development phase / dev sprint)I work directly off the live theme with --theme-editor-sync set to true. At this point I don't really care about environments if no other contributors / editors are working on it. I commit my theme editor configs to Git along with my files. If shit happens and I want to roll back I just roll back to a previous commit and shopify theme push to live. Post-launch (feature/modification)
Push to Git and Shopify to your heart's content. When you're ready to push your feature:
npm run shopify:pull
npm run deploy
I may have missed a step or two but you get the gist. If you're working with a team you'll likely want a safer more sophisticated workflow. https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow is a popular one but there are many. Chatbot search "Different deployment workflows" or something to that effect. Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
This discussion was created from the release v1.1.1.
Beta Was this translation helpful? Give feedback.
All reactions