Skip to content

Commit

Permalink
Fix a bunch of things for the heroku environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeiklejohn committed Jun 17, 2012
1 parent 4c6d844 commit 725c808
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ rel/
dev/
ebin/
*.dump
priv/log
6 changes: 3 additions & 3 deletions src/herloku_sup.erl
Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion start.sh
@@ -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.