Setting up a Shopify Development Environment
// config.yml
:api_key: 8a91f325de49da9b8bbfe31f64c0ee16
:ignore_files:
- todo
- config/settings_data.json
development:
password: 9a91f325de49da9b8bbfe31f64c0ee15
theme_id: "1542069208"
store: your-shopify-store.myshopify.com
production:
password: 9a91f325de49da9b8bbfe31f64c0ee15
theme_id: "4516029802"
store: your-shopify-store.myshopify.com
timeout: 60s
// Development Workflow
When you want to do work on your development store:
1. Go to Shopify Admin > Themes, click ‘Preview’ on your development theme.
2. Run theme watch --env=development.
3. Make changes, watch them update live on your development theme.
When you’re ready to upload these changes to the production store:
1. Go to Shopify Admin > Themes, click ‘Preview’ on your Live theme.
2. Run theme upload --env=production.
3. Your entire local directory will upload to Shopify, overriding your live theme’s code.