Permalink
Browse files

Fix a bunch of things for the heroku environment.

  • Loading branch information...
1 parent 4c6d844 commit 725c80857053b330e0d940e86109c77285d4920b @cmeiklejohn committed Jun 17, 2012
Showing with 5 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +3 −3 src/herloku_sup.erl
  3. +1 −1 start.sh
View
@@ -3,3 +3,4 @@ rel/
dev/
ebin/
*.dump
+priv/log
View
@@ -43,9 +43,9 @@ upgrade() ->
init([]) ->
Ip = case os:getenv("WEBMACHINE_IP") of false -> "0.0.0.0"; Any -> Any end,
Port = list_to_integer(os:getenv("PORT")),
- {ok, App} = application:get_application(?MODULE),
- {ok, Dispatch} = file:consult(filename:join([code:priv_dir(App),
- "dispatch.conf"])),
+ {ok, Dispatch} = file:consult(filename:join(
+ [filename:dirname(code:which(?MODULE)),
+ "..", "priv", "dispatch.conf"])),
WebConfig = [
{ip, Ip},
{port, Port},
View
@@ -1,3 +1,3 @@
#!/bin/sh
cd `dirname $0`
-exec erl -pa $PWD/ebin $PWD/deps/*/ebin -boot start_sasl -s reloader -s herloku
+exec erl -pa $PWD/ebin $PWD/deps/*/ebin -noshell -noinput -boot start_sasl -s reloader -s herloku

0 comments on commit 725c808

Please sign in to comment.