Permalink
Browse files

Fix app name detection and receiver launching.

  • Loading branch information...
1 parent 92cc5cd commit a7f069486958edb886cae9faed924cf981abe392 @technomancy committed Nov 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sokoban.rb
View
@@ -41,7 +41,7 @@ def proxy(env, base_url)
end
def call(env)
- app_name = env["REQUEST_PATH"][/^(.+?)\.git/, 1]
+ app_name = env["REQUEST_PATH"][/^\/(.+?)\.git/, 1]
receiver_url = ensure_receiver(app_name, api_key(env))
log(fn: "call", app_name: app_name, receiver: receiver_url)
@@ -70,7 +70,7 @@ def launch(app_name, api_key)
reply_key = "launched.#{@uuid.generate}"
log(fn: "launch", app_name: app_name, reply_key: reply_key) do
heroku = Heroku::API.new(:api_key => api_key)
- heroku.post_ps(app_name, "bundle exec bin/receiver",
+ heroku.post_ps(app_name, "bundle exec ruby -I:lib bin/receiver",
{ :ps_env => receiver_config(reply_key) })
log(fn: "launch", app_name: app_name, reply_key: reply_key, at: "wait")

0 comments on commit a7f0694

Please sign in to comment.