Skip to content

Commit

Permalink
Check for updated cli version.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreialecu committed Oct 26, 2016
1 parent d842c5e commit 3cb22ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/dpd
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ function start(file) {
process.chdir(path.dirname(file));
}
if (test('-f', 'app.dpd')) {
console.log("starting deployd v" + packageInfo.version + "...");
console.log("deployd CLI version " + packageInfo.version);
console.log("starting deployd");

if (fs.existsSync(latestversionFile)) {
var latest = fs.readFileSync(latestversionFile, 'utf-8');
var canUpdate = which('dpd-update');
if (latest && semver.gt(latest, packageInfo.version)) {
console.log("deployd v" + latest + " is available." + (canUpdate ? " Update with dpd-update": ""));
console.log("deployd CLI v" + latest + " is available.");
console.log();
}
}
Expand Down Expand Up @@ -304,7 +304,7 @@ function generatePort() {
}

function checkForUpdates() {
request('http://registry.npmjs.org/deployd', function(err, res, body) {
request('http://registry.npmjs.org/deployd-cli', function(err, res, body) {
if (!err) {
var json;
try {
Expand Down

0 comments on commit 3cb22ca

Please sign in to comment.