Permalink
Browse files

Merge pull request #248 from 37signals/configuration-env

Configuration environment refactoring
  • Loading branch information...
2 parents 3eb67db + d922567 commit 06094c67159dae293ebb4013f6ab41e31343d691 @sstephenson sstephenson committed Nov 14, 2011
View
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec node $@
View
@@ -1,6 +1,2 @@
-#!/usr/bin/ruby
-require 'pathname'
-bin = Pathname.new(__FILE__).realpath
-root = bin.dirname.parent
-ENV['POW_BIN'] = bin.to_s
-exec root.join("bin/node").to_s, root.join("lib/command.js").to_s, *ARGV
+#!/usr/bin/env node
+require("../lib/command.js");
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -19,11 +19,15 @@ module.exports = function(__obj) {
return _safe(result);
};
- _print(_safe('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n\t<key>Label</key>\n\t<string>cx.pow.powd</string>\n\t<key>ProgramArguments</key>\n\t<array>\n\t\t<string>sh</string>\n\t\t<string>-i</string>\n\t\t<string>-c</string>\n\t\t<string>$SHELL --login -c "\''));
+ _print(_safe('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n <key>Label</key>\n <string>cx.pow.powd</string>\n <key>ProgramArguments</key>\n <array>\n <string>'));
+
+ _print(process.execPath);
+
+ _print(_safe('</string>\n <string>'));
_print(this.bin);
- _print(_safe('\'"</string>\n\t</array>\n\t<key>KeepAlive</key>\n\t<true/>\n\t<key>RunAtLoad</key>\n\t<true/>\n</dict>\n</plist>\n'));
+ _print(_safe('</string>\n </array>\n <key>KeepAlive</key>\n <true/>\n <key>RunAtLoad</key>\n <true/>\n</dict>\n</plist>\n'));
return __out.join('');
}).call((function() {
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 06094c6

Please sign in to comment.