Commits

Bożydar Sobczak committed eddfb6b

splitting config file

  • Participants
  • Parent commits a45ee5e

Comments (0)

Files changed (4)

+syntax: glob
+*.*~
-God.watch do |w|
-  w.name = "app0"
-  
-  gemsets_path = [
-        "/home/bozydar/.rvm/gems/ruby-1.9.3-p194@global/bin/",
-        "/home/bozydar/.rvm/gems/ruby-1.9.3-p194@app0/bin",
-        "/home/bozydar/.rvm/rubies/ruby-1.9.3-p194/bin",
-        "/home/bozydar/.rvm/bin",
-        ENV['PATH'] # inherit this
-    ].join(':')
-
-  w.env      = {
-    "PATH"        => gemsets_path,
-        "GEM_PATH"    => "/home/bozydar/.rvm/gems/ruby-1.9.3-p194@app0"
-    }
-  w.dir = "/home/bozydar/workspaces/god-research/app0"
-  w.start = "rackup"
-  w.keepalive
-end
-
-God.watch do |w|
-  w.name = "app1"
-  
-  gemsets_path = [
-        "/home/bozydar/.rvm/gems/ree-1.8.7-2011.03@global/bin/",
-        "/home/bozydar/.rvm/gems/ree-1.8.7-2011.03@app1/bin",
-        "/home/bozydar/.rvm/rubies/ree-1.8.7-2011.03/bin",
-        "/home/bozydar/.rvm/bin",
-        ENV['PATH'] # inherit this
-    ].join(':')
-
-  w.env      = {
-    "PATH"        => gemsets_path,
-        "GEM_PATH"    => "/home/bozydar/.rvm/gems/ree-1.8.7-2011.03@app1"
-    }
-  w.dir = "/home/bozydar/workspaces/god-research/app1"
-  w.start = "rackup -p 9293"
-  w.keepalive
-end
-
-
-#God.watch do |w|
-#  w.name = "simple"
-#  w.start = "ruby /home/bozydar/workspaces/god-research/loop.rb"
-#  w.keepalive
-#end
-
-#PATH=$PATH:/home/bozydar/.rvm/gems/ree-1.8.7-2011.03@global/bin/:/home/bozydar/.rvm/gems/ruby-1.9.3-p194@app0/bin:/home/bozydar/.rvm/rubies/ruby-1.9.3-p194/bin:/home/bozydar/.rvm/bin
-#GEM_PATH=/home/bozydar/.rvm/gems/ruby-1.9.3-p194@app0
+God.load("/home/bozydar/workspaces/god-research/app0/app0.god")
+God.load("/home/bozydar/workspaces/god-research/app1/app1.god")
+God.watch do |w|
+  w.name = "app0"
+  
+  gemsets_path = [
+        "/home/bozydar/.rvm/gems/ruby-1.9.3-p194@app0/bin",
+        "/home/bozydar/.rvm/gems/ruby-1.9.3-p194@global/bin/",
+        "/home/bozydar/.rvm/rubies/ruby-1.9.3-p194/bin",
+        "/home/bozydar/.rvm/bin",
+        ENV['PATH'] # inherit this
+    ].join(':')
+
+  w.env      = {
+    "PATH"        => gemsets_path,
+        "GEM_PATH"    => 
+	  ["/home/bozydar/.rvm/gems/ruby-1.9.3-p194@app0",
+	   "/home/bozydar/.rvm/gems/ruby-1.9.3-p194@global"
+	  ].join(":")
+    }
+  w.dir = "/home/bozydar/workspaces/god-research/app0"
+  w.start = "rackup"
+  w.keepalive
+end
+God.watch do |w|
+  w.name = "app1"
+  
+  gemsets_path = [
+        "/home/bozydar/.rvm/gems/ree-1.8.7-2011.03@app1/bin",
+        "/home/bozydar/.rvm/gems/ree-1.8.7-2011.03@global/bin/",
+        "/home/bozydar/.rvm/rubies/ree-1.8.7-2011.03/bin",
+        "/home/bozydar/.rvm/bin",
+        ENV['PATH'] # inherit this
+    ].join(':')
+
+  w.env      = {
+    "PATH"        => gemsets_path,
+        "GEM_PATH"    => 
+	  ["/home/bozydar/.rvm/gems/ree-1.8.7-2011.03@app1",
+	   "/home/bozydar/.rvm/gems/ree-1.8.7-2011.03@global"
+	  ].join(":")
+    }
+  w.dir = "/home/bozydar/workspaces/god-research/app1"
+  w.start = "rackup -p 9293"
+  w.keepalive
+end