Skip to content

Commit

Permalink
updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
natemartinsf committed Jun 29, 2011
1 parent 2dd7d4d commit 49fc57f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Jakefile.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion config/props.json
@@ -1,5 +1,5 @@
{
"version" : "0.0.22",
"version" : "0.0.23",
"siteLocation" : "/var/w/",
"siteName" : "CappTutorials",
"state" : "live"
Expand Down

0 comments on commit 49fc57f

Please sign in to comment.