From 49fc57fadc149a46457b4297350699436ab653f8 Mon Sep 17 00:00:00 2001 From: Nathaniel Martin Date: Wed, 29 Jun 2011 12:34:31 -0700 Subject: [PATCH] updated version --- Jakefile.js | 9 ++++++++- config/props.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Jakefile.js b/Jakefile.js index d739116..f1e4247 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -105,7 +105,7 @@ task('symlink-live', ["load-props", "create-versioned-dir", "move-files"], funct ln; // Symlink to the versioned directory - var command = "rm " + livePath + " && ln -sv " + versionedPath + " " + livePath +" && ln -sv "+gitPath+" " + livePath+"/.git"; + var command = "rm " + livePath + " && ln -sv " + versionedPath + " " + livePath; console.log ("running: "+command); ln = exec("rm " + livePath + " && ln -sv " + versionedPath + " " + livePath, function (error, stdout, stderr) { if (error !== null && error.message.indexOf("No such file or directory") === -1) { @@ -140,6 +140,13 @@ task('default', ["load-props", "create-versioned-dir", "move-files", "symlink-li console.log(error, stdout, stderr); } }); + exec("ln -sv "+gitPath+" " + livePath+"/.git", function (error, stdout, stderr) { + if (error) { + throw error; + } else { + console.log(error, stdout, stderr); + } + }); exec(command, function (error, stdout, stderr) { if (error) { diff --git a/config/props.json b/config/props.json index 3da2866..7319f61 100644 --- a/config/props.json +++ b/config/props.json @@ -1,5 +1,5 @@ { -"version" : "0.0.22", +"version" : "0.0.23", "siteLocation" : "/var/w/", "siteName" : "CappTutorials", "state" : "live"