This repository was archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
Justin Nearing edited this page Dec 13, 2016
·
25 revisions
In order for lemonsync to run correctly, you need to configure your environment. Here we will discuss the requirements for configuring your local environment.
There are a few steps to successfully configure your LemonSync environment:
- Download your stores theme locally
- Generate an API token for LemonSync to securely connect to your stores
- Setup a configuration file locally to tie everything together
In order to work on our theme locally, we need to have our theme available locally.
- Go to your stores admin page
- ie.
YOUR_STORE.lemonstand.com/backend/cms/theme
- ie.
- Select the appropriate theme and click export
- A zip file will be downloaded by your browser
- Extract the contents into the
lemonstand_projectsfolder. See the example below
+--- lemonstand_projects
| \--- downloaded_theme_1
| \--- pages, etc.
| *--- theme.yaml
| \--- downloaded_theme_2
| \--- pages, etc.
| *--- theme.yaml
| *--- lemonstand.cfg
- Notes
- The
theme.yamlis important for lemonsync. Your local theme must have this file. -
lemonstand.cfgis the config file used by lemonsync. In it you will define which theme to sync.
- The
In order to establish a secure connection with your LemonStand Store, API key credentials provided by your Store must be added to your lemonstand.cfg configuration file. The following will show you how to generate an API key for your store.
- The API keys can be generated in your Stores Admin Page
- ie.
YOUR_STORE.lemonstand.com/backend/system/api
- ie.
- Generate a new API key in the Integrations > API section
- Use the generated keys in your
lemonstand.cfgconfiguration file.
- Create a file called
lemonsync.cfgin yourlemonstand_projectsfolder. - Open the file in your favorite text editor.
- Copy the following contents into
lemonsync.cfg
[api]
api_host = https://YOUR_STORE.lemonstand.com
api_key = YOUR_PUBLIC_API_KEY
api_access = YOUR_API_TOKEN
[dir]
watch_dir = /path/to/lemonstand_projects/downloaded_theme/
file_patterns = [ "*" ]
ignore_patterns = [ "*.tmp", "*.TMP", "*/.git*", "*.DS_Store", "*/node_modules/*" ]
[store]
store_host = YOUR_STORE.lemonstand.com
- Paste the credentials for the API keys as found in the
Generate API Keyssection. - Set your
watch_dirto the path of your theme you downloaded. The directory specified must contain thetheme.yamlfile. - The default values for
file_patternsandignore_patternscan be left as is, as you become more familiar with LemonSync you can edit these to customize your workflow.- See the [Advanced Configuration](Advanced Configuration) guide for more information on these options
Once you've customized your lemonstand.cfg file, you're ready to Start Using, or return Home.
LemonSync is maintained by LemonStand eCommerce


