diff options
author | Christoph Helma <helma@in-silico.ch> | 2013-06-21 10:21:03 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2013-06-21 10:21:03 +0200 |
commit | c0f75827c36405c18a9108fa98106de2706eae8d (patch) | |
tree | 3a473cc5c181abf23772cfef058e599c6cfe845f /unicorn.rb | |
parent | f6106825338557274d14aab47600b0a58b8b11a9 (diff) |
unicorn.rb added. merge conflicts resolved
Diffstat (limited to 'unicorn.rb')
-rw-r--r-- | unicorn.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/unicorn.rb b/unicorn.rb new file mode 100644 index 0000000..e1d6aeb --- /dev/null +++ b/unicorn.rb @@ -0,0 +1,11 @@ +service = File.dirname(File.expand_path(__FILE__)).split('/').last +config_dir = "#{ENV['HOME']}/.opentox/config" +log_dir = "#{ENV['HOME']}/.opentox/log" +log_file = File.join log_dir, "#{service}.log" +require File.join config_dir, service +port = eval("$#{service}[:port]") +listen port +pid File.join(log_dir,"#{service}.pid") +stderr_path log_file +stdout_path log_file + |