New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mup

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mup - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

8

example/mup.json

@@ -21,4 +21,8 @@ {

"env": {
"ROOT_URL": "http://supersite.com"
}
"ROOT_URL": "http://myapp.com"
},
//meteor-up checks if the app comes online just after the deployment
//before mup checks that, it will wait for no. of seconds configured below
"deployCheckWaitTime": 5
}

@@ -14,4 +14,9 @@ var nodemiral = require('nodemiral');

this.config = config;
this.sessions = this._createSession(config);
this.sessions = this._createSession(config);
//get settings.json into env
var setttingsJsonPath = path.resolve(this.cwd, 'settings.json');
if(fs.existsSync(setttingsJsonPath)) {
this.config.env['METEOR_SETTINGS'] = "'" + JSON.stringify(require(setttingsJsonPath)) + "'";
}
}

@@ -50,2 +55,3 @@

var options = {cwd: this.config.app};
var deployCheckWaitTime = this.config.deployCheckWaitTime;

@@ -62,3 +68,3 @@ console.log('Bundling Started: ' + this.config.app);

} else {
var taskList = taskLists.deploy(bundlePath, self.cwd, self.config.env);
var taskList = taskLists.deploy(bundlePath, self.config.env, deployCheckWaitTime);
taskList.run(self.sessions, afterCompleted);

@@ -74,5 +80,3 @@ }

Actions.prototype.reconfig = function() {
var env = this.config.env;
var taskList = taskLists.reconfig(this.cwd, env);
var taskList = taskLists.reconfig(this.config.env);
taskList.run(this.sessions);

@@ -79,0 +83,0 @@ };

@@ -38,2 +38,5 @@ var cjson = require('cjson');

//initialize env
mupJson.env = mupJson.env || {};
return mupJson;

@@ -40,0 +43,0 @@ } else {

@@ -41,11 +41,6 @@ var nodemiral = require('nodemiral');

taskList.copy('setttings up deployment', {
src: path.resolve(TEMPLATES_DIR, 'deploy.sh'),
dest: '/opt/meteor/deploy.sh'
});
return taskList;
};
exports.deploy = function(bundlePath, cwd, env) {
exports.deploy = function(bundlePath, env, deployCheckWaitTime) {
var taskList = nodemiral.taskList("Deploying App");

@@ -66,17 +61,6 @@

var setttingsJsonPath = path.resolve(cwd, 'settings.json');
if(fs.existsSync(setttingsJsonPath)) {
taskList.copy('uploading settings.json', {
src: setttingsJsonPath,
dest: '/opt/meteor/config/settings.json'
});
} else {
taskList.execute('cleaning up old settings.json', {
command: 'sudo rm /opt/meteor/config/settings.json || :'
});
}
//deploying
taskList.execute('calling deploy script', {
command: 'sudo bash /opt/meteor/deploy.sh'
taskList.executeScript('invoking deployment process', {
script: path.resolve(TEMPLATES_DIR, 'deploy.sh'),
vars: {deployCheckWaitTime: deployCheckWaitTime || 10}
});

@@ -87,3 +71,3 @@

exports.reconfig = function(cwd, env) {
exports.reconfig = function(env) {
var taskList = nodemiral.taskList("Updating Configurations");

@@ -99,17 +83,5 @@

var setttingsJsonPath = path.resolve(cwd, 'settings.json');
if(fs.existsSync(setttingsJsonPath)) {
taskList.copy('uploading settings.json', {
src: setttingsJsonPath,
dest: '/opt/meteor/config/settings.json'
});
} else {
taskList.execute('cleaning up old settings.json', {
command: 'sudo rm /opt/meteor/config/settings.json || :'
});
}
//deploying
taskList.execute('calling deploy script', {
command: 'sudo bash /opt/meteor/deploy.sh'
taskList.execute('restarting the app', {
command: '(sudo stop meteor || :) && (sudo start meteor)'
});

@@ -116,0 +88,0 @@

{
"name": "mup",
"version": "0.1.6",
"version": "0.1.7",
"description": "Production Quality Meteor Deplouments",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -64,3 +64,3 @@ # Meteor UP

After you've edit configurations or settings.json, you can reconfigure the app without deploying again. Use following command for that.
After you've edit environmental variables or settings.json, you can reconfigure the app without deploying again. Use following command for that.

@@ -80,2 +80,2 @@ mup reconfig

for more information see [`lib/taskLists.js`](https://github.com/arunoda/meteor-up/blob/master/lib/taskLists.js)
for more information see [`lib/taskLists.js`](https://github.com/arunoda/meteor-up/blob/master/lib/taskLists.js)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc