I'm trying to create a shipitfile for deployment, but it looks like things are happening out of order. I've got a fetched
event which updates npm modules but the deployment continues before this is finished.
More than likely I need to create a blocking task which prevents deployments from continuing, however I'm not sure how to hook that up to the fetched
event.
grunt.shipit.on('fetched', function() {
return grunt.task.run('npm:install');
});
shipit.task('install', function () {
shipit.start(['build-server', 'prepare-admin','clean-admin', 'prepare-client','clean-client']);
});
shared: {
overwrite: true,
dirs: [
'keys'
],
files: [
{
path: 'server/config.production.json',
overwrite: false,
chmod: '755',
},
'server/datasources.production.json'
]
}