-
Notifications
You must be signed in to change notification settings - Fork 0
Advanced Configuration
-
api_host
[required]Your full LemonStand domain
-
api_key
[required]The Public Key of your LemonStand API key (created in your store administration panel)
-
api_access
[required]The API Token of your LemonStand API key (also available in your store administration panel)
-
watch_dir
[required]This is the directory that
LemonSync
will listen to changes on. -
store_host
[required]The host name of your store.
-
file_patterns
[optional]By default,
LemonSync
will listen to changes on all files, that are not specified in theignore_patterns
setting. Values need to be comma separated, and enclosed in square brackets. -
ignore_patterns
[optional]By default,
LemonSync
will ignore any.tmp
andgit/
files. Patterns are matched based on Unix style "globbing". Values need to be comma separated, and enclosed in square brackets.
-
api_host
is the full URL of your store
-
https://my-curios-shop.lemonstand.com
- if your store name is my-curios-shop and does not use a custom domain. -
https://my-curios-shop.ca
- if you have a custom domain and have SSL configured.
Note: LemonSync will only modify the theme marked as the editing theme for the user who owns this API key. You can put a theme into editing mode by using the theme settings in the LemonStand backend.
The watch_dir
should point to your local theme folder, which should have the theme.yaml
file in it.
-
Watch for changes only to
.js
and.css
files.file_patterns = [ "*.js", "*.css" ]
-
Watch for changes in specific directories.
file_patterns = [ "*/pages/*", "*/resources/*" ]
This will match against all directories named
pages
andresources
in yourwatch_dir
. To watch on the root levelpages
andresources
directories only, you need to specify the full path to the directories.file_patterns = [ "/full/path/to/pages/*", "/full/path/to/resources/*" ]
-
Watch for changes to specific files in directories.
file_patterns = [ "*/pages/*.js", "*/resources/*.css" ]
-
Ignore a specific file. This will ignore all occurrences of
file.ext
in any sub-directory.ignore_patterns = [ "*/file.ext" ]
To match a file in a specific directory, the full path needs to be specified.
ignore_patterns = [ "/full/path/to/file.ext" ]
-
Ignore directories.
ignore_patterns = [ "*/directory/*" ]
To match a specific directory you need to specify the full path.
ignore_patterns = [ "/full/path/to/directory/*" ]
LemonSync is maintained by LemonStand eCommerce