'shopify theme serve' not serving the latest theme locally

Hi There,

I have a copy of Dawn linked to a Github repo on a live store and it’s not published.

I’ve made content changes to Dawn in the editor on Shopify and want to make local alterations. So I’ve…

  • Pulled the Github repo locally (using the Github app)
  • cd’d into the local repo in Terminal
  • Logged into the live shop via Shopify CLI
  • Pulled the correct Theme ID from Shopify and specified the path to my local repo e.g.
shopify theme pull --themeID 120502779992 ~/Sites/hotel-dawn/
  • Edits from Shopify (like social links were added to config/settings_data.json) have pulled down
  • But when I serve the theme, Shopify CLI serves a completely different theme ID
  • In fact, that theme ID doesn’t seem to exist on my live store

How do I serve the correct theme ID with latest edits?

Cheers, Ben

I suspect that if using the Github link, you have to pull changes via git instead of using ‘theme pull’ in Shopify CLI.

Edits made on Shopify (content or theme) are auto-pushed to Github, so pulling changes via Shopify CLI will create conflicts between your local repo and Github.

Once committing, theme serve previewed the correct theme version locally.

If anyone can confirm, that would be helpful, as I’m not sure I’ve got that right.