Commits

Bożydar Sobczak committed ee505c3

final

  • Participants
  • Parent commits 0ba491b

Comments (0)

Files changed (1)

 God.watch do |w|
-  w.name = "simple"
+  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",
         "GEM_PATH"    => "/home/bozydar/.rvm/gems/ruby-1.9.3-p194@app0"
     }
   w.dir = "/home/bozydar/workspaces/god-research/app0"
-  w.start = "/home/bozydar/.rvm/gems/ruby-1.9.3-p194@app0/bin/rackup /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/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
+#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