boom-deploy
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -16,3 +16,3 @@ | ||
//ssh('[ -f {{sharedPath}}/config/{{env}}.json ] && ln -s {{sharedPath}}/config/{{env}}.json {{releasePath}}/config/{{env}}.json'); | ||
symlinkTo('{{releasePath}}/config/{{env}}.json', '{{sharedPath}}/config/{{env}}.json') | ||
symlink('{{sharedPath}}/config/{{env}}.json', '{{releasePath}}/config/{{env}}.json') | ||
task('deploy:restart'); | ||
@@ -19,0 +19,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
new Task('deploy:setup', function(){ | ||
@@ -35,3 +34,3 @@ getHead(); | ||
'rm -rf {{releasesPath}}/{{latestReleaseName}}'); | ||
symlinkTo('{{currentPath}}', '{{releasesPath}}/{{previousReleaseName}}'); | ||
symlink('{{releasesPath}}/{{previousReleaseName}}', '{{currentPath}}'); | ||
}); | ||
@@ -90,4 +89,4 @@ | ||
'mkdir -p {{sharedPath}}/log'); | ||
symlinkTo('{{currentPath}}', '{{releasePath}}'); | ||
symlinkTo('{{currentPath}}/log', '{{sharedPath}}/log'); | ||
symlink('{{releasePath}}', '{{currentPath}}'); | ||
symlink('{{sharedPath}}/log', '{{currentPath}}/log'); | ||
@@ -94,0 +93,0 @@ }); |
@@ -32,3 +32,3 @@ var _ = require('lodash'); | ||
env && vars.applyTo(this.data); // TODO | ||
vars.applyTo(this.data); // TODO | ||
this.preprocess(this.data); | ||
@@ -35,0 +35,0 @@ |
@@ -165,3 +165,3 @@ var _ = require('lodash'); | ||
}, | ||
symlinkTo: function(from, to){ | ||
symlink: function(to, from){ | ||
return function(){ | ||
@@ -168,0 +168,0 @@ var future = new Future; |
@@ -21,12 +21,12 @@ var moment = require('moment'); | ||
currentPath: function(){ | ||
return path.resolve(this.deployTo, 'current') | ||
return path.resolve(this.deployTo||'', 'current') | ||
}, | ||
releasesPath: function(){ | ||
return path.resolve(this.deployTo, 'releases') | ||
return path.resolve(this.deployTo||'', 'releases') | ||
}, | ||
sharedPath: function(){ | ||
return path.resolve(this.deployTo, 'shared') | ||
return path.resolve(this.deployTo||'', 'shared') | ||
}, | ||
releasePath: function(){ | ||
return path.resolve(this.releasesPath, this.timestamp) | ||
return path.resolve(this.releasesPath||'', this.timestamp) | ||
} | ||
@@ -33,0 +33,0 @@ } |
{ | ||
"name": "boom-deploy", | ||
"main": "boom.js", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "deploy your app", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33062