Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to have separate tasks for each environment? #2

Open
eremzeit opened this issue Sep 19, 2015 · 1 comment
Open

Is it possible to have separate tasks for each environment? #2

eremzeit opened this issue Sep 19, 2015 · 1 comment

Comments

@eremzeit
Copy link

I'm thinking something like this:

grunt.initConfig({
  "mongo-migrate": {
    development: {
      create: "", 
      up: "", 
      down: "", 
      options: {
          config: "config_dev.json",
          dbPropName: "mongo"
      }   
    },  
    production: {
      create: "", 
      up: "", 
      down: "", 
      options: {
          config: "config_prod.json",
          dbPropName: "mongo"
      }   
    }   
  }
});```
@olaurendeau
Copy link
Owner

@eremzeit
Sorry for the late response, it would certainly be possible to do so.
But is it because your config files are under version control ? Usually parameters that depends on environment are stored in environment variable or unversioned local files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants