Holy Moly. I let this one through replying so late. My apologies. You can add it to an init script in priv/init
Two months late - pretty unacceptable, my bad. On Mon, Jun 16, 2014 at 10:07 AM, Вячеслав Козлов <[email protected]> wrote: > Hello, Evan! > I added dependency for my custom application to rebar.config > and my custom app put to my_app_CB/deps/my_custom_app. > Please specify for me, how can I start my custom application > (application:start(my_costom_app)) when start CB > Thank you! > > вторник, 12 ноября 2013 г., 0:17:28 UTC+4 пользователь Evan Miller написал: >> >> Hi Jim, >> >> {second_otp_app, [ {path, "../second_otp_app"} ]} won't do anything. >> The "path" var is a CB-specific config value that doesn't apply to >> non-CB apps. >> >> What you can do instead is put your other app into the deps/ directory >> of your project. You could also use a symlink. Then call >> application:start from your init script. >> >> Evan >> >> On Wed, Oct 30, 2013 at 8:37 PM, Slava P. <[email protected]> wrote: >> > on how to add application u can read in Admin application install. on >> > git , >> > >> > and if u need to auto init that app, try making separate init. file for >> > your >> > app in priv/init >> > >> > for example, this is my file for qdate jam_qdate_init.erl >> > -module(qdate_init). >> > >> > -export([init/0, stop/1]). >> > >> > init() -> %U can add Pid etc here if req., case err etc. >> > qdate:start(), >> > {ok, [undefined]}. >> > >> > stop(QdateId) -> %QdateId is a dummy var to fit pattern only >> > qdate:stop(). >> > >> > >> > hope this would help >> > >> > >> > On 29 October 2013 14:58, jim rosenblum <[email protected]> wrote: >> >> >> >> I have a chicagoboss application that makes use of a second OTP >> >> application. I cannot get the second application to start without >> >> manual >> >> intervention. My directory structure is as follows: >> >> >> >> project >> >> |-apps >> >> |-boss_app >> >> |-seond_otp_app >> >> >> >> In my boss_app directory I have a boss.config that includes a stanza >> >> for >> >> this second OTP app, as in: >> >> {second_otp_app, [ {path, "../second_otp_app"} ]}, >> >> >> >> I also have this second_otp_app in my boss_app.app.src file: >> >> {applications, [..., second_otp_app,..]} section. >> >> >> >> With this in place, and not working, I tried additionally adding an >> >> explicit start in my priv/init/boss_app_01_news files. This also fails >> >> silently. >> >> >> >> When I try to start it by hand from the erlang shell produced by >> >> starting >> >> my boss_app, I get a {error,{"no such file or >> >> directory","ehc_notifier.app"}} error. >> >> >> >> When I manually add the path to the second app's ebin directory, I can >> >> start it by hand. >> >> >> >> Any ideas? >> >> >> >> >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "ChicagoBoss" group. >> >> To unsubscribe from this group and stop receiving emails from it, send >> >> an >> >> email to [email protected]. >> >> For more options, visit https://groups.google.com/groups/opt_out. >> > >> > >> > >> > >> > -- >> > Sincerely, Slava P. >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "ChicagoBoss" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an >> > email to [email protected]. >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> -- >> Evan Miller >> http://www.evanmiller.org/ > > -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/61cffb29-c404-4f6b-a222-96bf65923ef7%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Jesse Gumm Owner, Sigma Star Systems 414.940.4866 || sigma-star.com || @jessegumm -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/CAPTXyXe8LxSt%2B8xk6Q7HkwRRzfC%2BR6-238MK0t1B0Yn3RcaTMw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
