Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

multiple instances for stage command

  • Loading branch information...
commit 81290387685dac1a53fdd6853af36c3a2501530c 1 parent d5883ab
@maleck13 maleck13 authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/stage.js
View
6 lib/stage.js
@@ -22,10 +22,9 @@ function stage (args, cb) {
var target = ini.get('live') ? 'live' : 'development';
var numinstances = 1;
- if (args[1] === "live" || args[1] === "develop") target = args[1];
- else if(Number(args[1])) numinstances = Number(args[1]);
+ if(Number(args[1])) numinstances = Number(args[1]);
+ if (args[1]) clean = args[1] === 'clean';
if (args[2]) clean = args[2] === 'clean';
- if (args[3]) clean = args[3] === 'clean';
doStage(fhc.appId(args[0]), target, clean, numinstances, cb);
@@ -48,7 +47,6 @@ function doStage(app, target, clean, numinstances, cb) {
var uri = "box/srv/1.1/ide/" + fhc.domain + "/app/" + type;
var payload = {payload:{guid: app, clean: clean, 'numappinstances':numinstances}};
// finally do our call
-
common.doApiCall(fhreq.getFeedHenryUrl(), uri, payload, "Error staging app: ", function(err, data) {
if (err) return cb(err);
async.map([data.cacheKey], common.waitFor, function(err, results) {
Please sign in to comment.
Something went wrong with that request. Please try again.