|
|
| Author |
Message |
|
| Guest |
Posted: Tue Mar 11, 2008 12:33 pm |
|
|
|
Guest
|
Hello,
I have an application that embeds Yaws, and am in the process of
crafting a release. Not an expert in that domain btw.
I have a couple of questions:
1. I added yaws in the .rel file, when starting yaws from inside
the application i get an {error, {already_loaded..}} when i start
yaws with start_embedded/N.
Is that normal ? For now, i get around this by stopping and
unloading yaws before calling start_embedded. Not the right way,
obviously So what is the correct way of starting yaws embedded
in a larger OTP application ?
2. When making the .tar.gz containing the release, some files
are ommited; typically yaws_api.hrl. What should i do ?
Thanks in advance for your answers,
--
Olivier
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Mar 11, 2008 2:28 pm |
|
|
|
Guest
|
Olivier,
When you include Yaws in the .app file, mark it as "load". That way
it will not be started until you do so explicitly. You can then start
Yaws in "embedded" mode when it suits you.
Probably somewhat outdated:
http://askslim.blogspot.com/2006/05/erlang-yaws-161-in-embedded-mode.html
-Slim
On Tue, Mar 11, 2008 at 8:32 AM, Olivier Girondel <olivier@biniou.info> wrote:
>
> Hello,
>
> I have an application that embeds Yaws, and am in the process of
> crafting a release. Not an expert in that domain btw.
>
> I have a couple of questions:
>
> 1. I added yaws in the .rel file, when starting yaws from inside
> the application i get an {error, {already_loaded..}} when i start
> yaws with start_embedded/N.
>
> Is that normal ? For now, i get around this by stopping and
> unloading yaws before calling start_embedded. Not the right way,
> obviously So what is the correct way of starting yaws embedded
> in a larger OTP application ?
>
> 2. When making the .tar.gz containing the release, some files
> are ommited; typically yaws_api.hrl. What should i do ?
>
> Thanks in advance for your answers,
>
> --
> Olivier
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
>
--
Jeroen "Slim" van Gelderen
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Mar 11, 2008 9:58 pm |
|
|
|
Guest
|
Jeroen "Slim" van Gelderen wrote:
> Olivier,
>
> When you include Yaws in the .app file, mark it as "load". That way
> it will not be started until you do so explicitly. You can then start
> Yaws in "embedded" mode when it suits you.
Hi, thank you for your answer.
I finally managed it working (yaws-1.75), by adding
{yaws, "1.75", none},
to my application's .rel file. Now yaws:start_embedded works ok.
Could not make it work using the .app file as you said, though.
Now, i have to find out how to get yaws_api.hrl included in the release
Thanks again for the clues,
--
Olivier
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|