Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use __dirname instead of @configuration.bin

  • Loading branch information...
commit 831469e8ef71cc68277df87420204acfb0d6800c 1 parent a4ad5af
@sstephenson sstephenson authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/rack_application.js
  2. +1 −1  src/rack_application.coffee
View
2  lib/rack_application.js
@@ -100,7 +100,7 @@
return exists(rvm = _this.configuration.rvmPath, function(rvmExists) {
var before, libexecPath;
if (rvmExists) {
- libexecPath = resolve(_this.configuration.bin, "../../libexec");
+ libexecPath = resolve("" + __dirname + "/../libexec");
before = ("'" + libexecPath + "/pow_rvm_deprecation_notice' '" + [_this.firstHost] + "'\nsource '" + rvm + "' > /dev/null").trim();
return sourceScriptEnv(script, env, {
before: before
View
2  src/rack_application.coffee
@@ -112,7 +112,7 @@ module.exports = class RackApplication
if rvmrcExists
exists rvm = @configuration.rvmPath, (rvmExists) =>
if rvmExists
- libexecPath = resolve @configuration.bin, "../../libexec"
+ libexecPath = resolve "#{__dirname}/../libexec"
before = """
'#{libexecPath}/pow_rvm_deprecation_notice' '#{[@firstHost]}'
source '#{rvm}' > /dev/null
Please sign in to comment.
Something went wrong with that request. Please try again.