Open zomars opened 6 years ago
Could you add the settings_data.json
to the SLATE_IGNORE_FILES
in the .env
file?
e.g.
# The myshopify.com URL to your Shopify store
SLATE_STORE=mystore.myshopify.com
# The API password generated from a Private App
SLATE_PASSWORD=abc123
# The ID of the theme you wish to upload files too
SLATE_THEME_ID=1234567890
# A list of file patterns to ignore, with each list item seperated by ':'
SLATE_IGNORE_FILES=/config/settings_data.json
That would be one solution, but there are many cases where keeping this file tracked would be desirable.
@zomars are the changes made to settings_data.json something you feel should be part of your git tracking? In my experience, I have always wanted the version of settings_data.json that is tracked in my project to include default values and presets.
@t-kelly in some cases yes, I can use git to keep a backup history for settings, so we can rollback to a previous state easily.
Problem
There is no way to download changes made to the
settings.json
file from Slate.Replication steps
More Information
I know there's another issue about a possible
sync
command that focuses on downloading all changed files and it's not that easy to implement. In this case, simple changes made by the theme editor wouldn't cause much trouble to download since it's all saved in thesettings.json
file IMHO.