getdave / grunt-deployments

MYSQL database deployments using GruntJS
MIT License
72 stars 34 forks source link

Running db_pull as a GruntFile.js task? #51

Open EddyRespondek opened 10 years ago

EddyRespondek commented 10 years ago

Question:

This might be obvious but I couldn't figure out how to do it. Is there a way to run the db_pull command as a task in GruntFile.js?

I figured something like the following would work

deployments: { local: {...}, staging: {...}, pull_db_staging: { db_pull: { target: 'staging' } } }

grunt.registerTask('pull-stg', ['deployments:pull_db_staging','rsync:pull_uploads_staging']);

sheck commented 9 years ago

+1