We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5046856 commit 52896ccCopy full SHA for 52896cc
1 file changed
handlers/tutorial/tasks/remoteUpdate.js
@@ -101,7 +101,7 @@ module.exports = function(options) {
101
exec('ssh ' + host + ' "bash /tmp/check.sh"');
102
103
/* jshint -W106 */
104
- var env = ecosystem.apps[0].env_production;
+ var env = ecosystem.apps[0]['env_' + args.host];
105
106
exec(`ssh ${host} "cd ${config.projectRoot} && SITE_HOST=${env.SITE_HOST} STATIC_HOST=${env.STATIC_HOST} gulp tutorial:cache:regenerate && gulp cache:clean"`);
107
});
0 commit comments