Builder/Provider/TestEnviroment/Setup.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 5 Jul 2010 10:19:06 +0000 (18:19 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 5 Jul 2010 10:19:06 +0000 (18:19 +0800)
Builder/Provider/TestEnviroment/Setup.js

index 30e5695..2d1ff5d 100644 (file)
@@ -18,7 +18,7 @@ Setup = {
     
     dir:  '', // home appbulider...
     user : '', // the runnning user..
-    
+    home : '',
     cloneModules : function()
     {
         this.cloneModule('Pman.Core');
@@ -86,12 +86,12 @@ Setup = {
            
             'fastcgi.server = ( ".php" => (( ' + "\n" +
             '                     "bin-path" => "/usr/bin/php5-cgi",' + "\n" +
-            '                     "socket" => "/home/alan/www/php5.socket" ' + "\n" +
+            '                     "socket" => "' + this.home + '/www/php5.socket" ' + "\n" +
             '                 )))' + "\n" +
             
-            'server.document-root       = "/home/alan/www/docs"' + "\n" +
-            'server.upload-dirs = ( "/home/alan/www/uploads" )' + "\n" +
-            'server.errorlog            = "/home/alan/www/logs/error.log"' + "\n" +
+            'server.document-root       = "' + this.home + '/www/docs"' + "\n" +
+            'server.upload-dirs = ( "' + this.home + '/www/uploads" )' + "\n" +
+            'server.errorlog            = "' + this.home + '/www/logs/error.log"' + "\n" +
 
             'index-file.names           = ( "index.php", "index.html",' + "\n" +
             '                               "index.htm", "default.htm",' + "\n" +
@@ -100,14 +100,14 @@ Setup = {
             'static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )' + "\n" +
             'server.port               = 8090' + "\n" +
             'server.bind                = "localhost"' + "\n" +
-            'server.pid-file            = "/home/alan/www/run/lighttpd.pid"' + "\n" +
+            'server.pid-file            = "' + this.home + '/www/run/lighttpd.pid"' + "\n" +
          
             'dir-listing.encoding        = "utf-8"' + "\n" +
             'server.dir-listing          = "enable"' + "\n" +
-            'server.username            = "alan"' + "\n" +
-            'server.groupname           = "alan"' + "\n" +
+            'server.username            = "' + this.user + '"' + "\n" +
+            'server.groupname           = "' + this.user + '"' + "\n" +
            
-            'compress.cache-dir          = "/home/alan/cache/lighttpd/compress/"' + "\n" +
+            'compress.cache-dir          = "' + this.home + '/cache/lighttpd/compress/"' + "\n" +
             'compress.filetype           = ("text/plain", "text/html", "application/x-javascript", "text/css")' + "\n" +
             'include_shell "/usr/share/lighttpd/create-mime.assign.pl"' + "\n" +
             'include_shell "/usr/share/lighttpd/include-conf-enabled.pl"' + "\n"