Skip to content
Browse files

starting on support to git-push deploy apps from jsapp

  • Loading branch information...
1 parent 8a00496 commit 60a8ae91634727cb40c8c6ff9c42fd26a78483db @matthewfl committed Feb 6, 2011
Showing with 33 additions and 2 deletions.
  1. +4 −1 config.sample.js
  2. +28 −0 git-remote.js
  3. +1 −1 static/less
View
5 config.sample.js
@@ -25,4 +25,7 @@ exports.dbPort='/tmp/tyrant';
exports.dbHost="";
exports.dbSyncTime=10*1000;
-exports.deleteDomainFile="/home/matthew/jsapp_delete_domain"; // change this to some place that you can write to
+exports.deleteDomainFile=process.env.PWD"/../jsapp_delete_domain"; // change this to some place that you can write to
+
+exports.gitDirPath = process.env.PWD +"/../jsapp_remote_git";
+exports.gitLockFile = process.env.PWD +"/../jsapp_git_lock";
View
28 git-remote.js
@@ -0,0 +1,28 @@
+// this file is loaded as a sub process to take the code from an application and deploy it
+
+var db = require('./db'),
+sandbox = require('./sandbox'),
+config = require('./config'),
+fs = requre('fs');
+
+var user = process.argv[1];
+var fileName = process.argv[2];
+
+function run_git() {
+
+}
+
+
+// check the lock file of the git dir
+fs.stat(config.gitLockFile, function (err, Lock) {
+ if(err) {
+ var checkLock = setInterval(function () {
+ fs.stat(config.gitLockFile, function (err, Lock) {
+ if(!err) return;
+
+ });
+ },250);
+ }else{
+
+ }
+});
2 static/less
@@ -1 +1 @@
-Subproject commit 6b8a5c4f2797e4a0cb8b38aaa5e6685b518ba314
+Subproject commit 40c7ab81a964665d1a21fa985fa27cf64b9a6f48

0 comments on commit 60a8ae9

Please sign in to comment.
Something went wrong with that request. Please try again.