Bożydar Sobczak avatar Bożydar Sobczak committed e5044de

refactor: Pulling path from __FILE__ const

Comments (0)

Files changed (2)

 require 'rvm'
-gemset = 'ruby-1.9.3-p194@app0'
+path =  File.dirname(__FILE__)
+gemset = [File.read("#{path}/.ruby-version").chop, File.read("#{path}/.ruby-gemset").chop].join("@")
 
 env = RVM.environment(gemset).info[gemset]['environment']
 
       "PATH"        => env['PATH'],
       "GEM_PATH"    => env['GEM_PATH'] 
     }
-  w.dir = "/home/bozydar/workspaces/god-research/app0"
+  w.dir = path
   w.start = "rackup"
   w.keepalive
 end
 require 'rvm'
-gemset = 'ree-1.8.7-2011.03@app1' 
-
+path = File.dirname(__FILE__) 
+gemset = [File.read("#{path}/.ruby-version").chop, File.read("#{path}/.ruby-gemset").chop].join("@") 
+ 
 env = RVM.environment(gemset).info[gemset]['environment']
 
 God.watch do |w|
     "PATH" => env['PATH'],
     "GEM_PATH" => env['GEM_PATH'] 
     }
-  w.dir = "/home/bozydar/workspaces/god-research/app1"
+  w.dir = path
   w.start = "rackup -p 9293"
   w.keepalive
 end
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.