Comments (4)
So you would like to push the same code to 2 different shops? Seems like a bit of an edge case and I personally wouldn't need it so PR welcome if you want to contribute the feature.
from grunt-shopify.
I'd love to set up production and development tasks. Unfortunately I can't get both sets of keys in there.
from grunt-shopify.
This can easily be achieved by using env variables, I use it like this:
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
shopify: {
options: {
api_key: process.env.SHOPIFY_API_KEY,
password: process.env.SHOPIFY_API_PASSWORD,
url: process.env.SHOPIFY_API_URL,
base: 'theme/'
}
},
watch: {
shopify: {
files: ['theme/assets/**','theme/config/**','theme/layout/**','theme/snippets/**','theme/templates/**']
}
}
});
then invoke grunt like this:
SHOPIFY_API_KEY=<key> SHOPIFY_API_PASSWORD=<password> SHOPIFY_API_URL=<url> grunt shopify
It is easy to switch between stores this way.
from grunt-shopify.
As @pagameba has described (and as readme says) ENV variables are the way to go for managing configuration. You can also implement your own shortcuts for push prod
, push dev
if you need outside of the context of the plugin
from grunt-shopify.
Related Issues (20)
- Livereload is trigger prematurely HOT 4
- Watch doesn't detect addition / deletion of files HOT 2
- Task doesn't do anything... HOT 2
- I keep getting this error: Loading "shopify.js" tasks...ERROR
- shopify watch errors HOT 2
- grunt watch:shopify not publishing despite successful status report HOT 6
- Shopify:Download grunt task not working HOT 1
- Updating just changed files? HOT 1
- Gulp equivalent of grunt-shopify HOT 2
- Download is throttled HOT 2
- not in base path HOT 2
- watch stopped working shopify:upload still works HOT 2
- Deploy without images
- New 'Sections' feature in themes HOT 2
- Suggestion: Ignore settings_data.json setting HOT 1
- "Loading "shopify.js" tasks...ERROR" after updating to 1.0.1 from 1.0.0 HOT 1
- Cannot find module growl HOT 2
- Getting upload errors for the "assets" folder
- Not allowed by Shopify whitelist HOT 1
- Request limit exceeded for the Shopify API Use HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-shopify.