Comparing version 0.1.10 to 0.1.11
@@ -47,3 +47,3 @@ var nodemiral = require('nodemiral'); | ||
Actions.prototype.setup = function() { | ||
var taskList = taskLists.setup(this.config.setupMongo); | ||
var taskList = taskLists.setup(this.config.setupMongo, this.config.setupNode, this.config.setupPhantom); | ||
taskList.run(this.sessions); | ||
@@ -151,2 +151,2 @@ }; | ||
} | ||
}; | ||
}; |
@@ -40,2 +40,8 @@ var cjson = require('cjson'); | ||
mupJson.env = mupJson.env || {}; | ||
if (typeof mupJson.setupNode === "undefined"){ | ||
mupJson.setupNode = true; | ||
} | ||
if (typeof mupJson.setupPhantom === "undefined"){ | ||
mupJson.setupPhantom = true; | ||
} | ||
mupJson.meteorBinary = (mupJson.meteorBinary)? getCanonicalPath(mupJson.meteorBinary): 'meteor'; | ||
@@ -68,2 +74,2 @@ | ||
} | ||
} | ||
} |
@@ -8,13 +8,17 @@ var nodemiral = require('nodemiral'); | ||
exports.setup = function(installMongo) { | ||
exports.setup = function(installMongo, setupNode, setupPhantom) { | ||
var taskList = nodemiral.taskList('Setting Up'); | ||
// Installation | ||
taskList.executeScript('installing node', { | ||
script: path.resolve(SCRIPT_DIR, 'install-node.sh') | ||
}); | ||
if (setupNode) { | ||
taskList.executeScript('installing node', { | ||
script: path.resolve(SCRIPT_DIR, 'install-node.sh') | ||
}); | ||
} | ||
taskList.executeScript('installing phantomjs', { | ||
script: path.resolve(SCRIPT_DIR, 'install-phantomjs.sh') | ||
}); | ||
if (setupPhantom) { | ||
taskList.executeScript('installing phantomjs', { | ||
script: path.resolve(SCRIPT_DIR, 'install-phantomjs.sh') | ||
}); | ||
} | ||
@@ -87,2 +91,2 @@ taskList.executeScript('setting up environment', { | ||
return taskList; | ||
}; | ||
}; |
{ | ||
"name": "mup", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Production Quality Meteor Deplouments", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -38,4 +38,4 @@ # Meteor UP | ||
* Support for **Hot Code Reload** | ||
* Secured MongoDB Installation | ||
* Pre-Installed PhantomJS | ||
* Secured MongoDB Installation (Optional) | ||
* Pre-Installed PhantomJS (Optional) | ||
@@ -78,2 +78,7 @@ ### Installation | ||
"setupMongo": false, | ||
//install Nodejs in the server | ||
//WARNING: Nodejs is required! Only skip if you already have nodejs installed on server. | ||
"setupNode": true, | ||
//install PhantomJS in the server | ||
"setupPhantom": true, | ||
@@ -156,2 +161,2 @@ //location of app (local directory) | ||
This will also restart the app, so you can use it for that purpose even if you didn't change the configuration file. | ||
This will also restart the app, so you can use it for that purpose even if you didn't change the configuration file. |
20920
305
160