heroku push error

108 views
Skip to first unread message

_nato_

unread,
Jun 1, 2012, 2:04:58 PM6/1/12
to ChicagoBoss
I know this is not stackoverflow, but I followed the heroku deploy
from the wiki instructions and things snag on heroku:

...

-----> Heroku receiving push
-----> Git submodules detected, installing
Submodule 'ChicagoBoss' (https://github.com/evanmiller/
ChicagoBoss.git) registered for path 'ChicagoBoss'
Initialized empty Git repository in /tmp/build_37d3ugitouton/
ChicagoBoss/.git/
Submodule path 'ChicagoBoss': checked out
'ca58fed7ebe7b556a03cb10e28e0ce20dca9ee76'
-----> Fetching custom buildpack... done
-----> Erlang app detected
-----> Building with Rebar
==> build_37d3ugitouton (get-deps)
==> build_37d3ugitouton (pre_compile)
ERROR: pre_compile failed while processing /tmp/
build_37d3ugitouton: {'EXIT',
{undef,
[{boss_rebar,all_ebin_dirs,
[[{boss,
[{path,"../ChicagoBoss"},
{vm_cookie,"abc123"},
{applications,[bb]},
{db_adapter,pgsql},
{db_host,"###.amazonaws.com"},
{db_username,"###"},
{db_password,"###"},
{db_port,5502},
{db_database,"###"},
{log_dir,"log"},
{server,misultin},
{port,{env,"PORT"}},
{session_adapter,mock},
{session_key,"_boss_session"},
{session_exp_time,525600}]},
{bb,[{path,"../bb"},{base_url,"/"}]}],
"/tmp/build_37d3ugitouton/src/bb.app.src"]},
{boss_plugin,init,2},
{boss_plugin,pre_compile,2},
{rebar_core,run_modules,4},
{rebar_core,execute,4},
{rebar_core,process_dir0,6},
{rebar_core,process_commands,2},
{rebar,main,1}]}}
! Heroku push rejected, failed to compile Erlang app

...

I have a symlink of ChicagoBoss in my local ".." dir pointing to the
latest CB source, I can run tests and run dev fine, and as was asked,
I changed the path for production in boss.config to "..ChicagoBoss"

Any carbuncles in the output above which points to something I am
doing wrong? My Procfile looks like this:

...

web: ./init.sh start

...

And I didn't understand the wiki regarding run.sh nor renaming --
legacy?

Thanks!!

Ben G.

unread,
Jun 1, 2012, 5:07:48 PM6/1/12
to chica...@googlegroups.com
Heroku deployment is still in alpha. 
There's also number of limitations on heroku(e.g. ports) that would may limit CB's power 

_nato_

unread,
Jun 5, 2012, 8:10:01 AM6/5/12
to ChicagoBoss
I see; I was under the impression based on the Wiki that its possible.
I am pretty far getting a db-driven CB app to work on RedHat's
openshift PaaS. Some very strange errors at this point but I will post
my HOWTO if I can break through.

Ben G.

unread,
Jun 5, 2012, 9:14:50 PM6/5/12
to chica...@googlegroups.com
I believe vorn has had some succes with it, so it is possible. It's still alpha grade though, and may never become part of the official distro because the limitations that heroku has are not appropriate to impose on the rest of the CB community(My word on that is not anything official though)

Vorn

unread,
Jun 5, 2012, 9:30:27 PM6/5/12
to chica...@googlegroups.com
I haven't spent any further time on the template project since the
inital version a few months ago.

I believe the problem is that the template app (assuming you've forked
from it) was generated with an earlier version of CB, and the build
script is pulling in CB HEAD as as submodule. You might have better
luck if you either a) create a fresh CB app and follow the steps at:
https://github.com/vorn/ChicagoBoss-on-Heroku/blob/master/README.md
describing how the template project was created, or b) updating
<appname>/priv/rebar/boss_plugin.erl with a version from current CB
HEAD (possibly revealing other issues).

I'll see if I can revisit the template project a little later...


Vorn.
Reply all
Reply to author
Forward
0 new messages