Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  how to set mnesia directory in yaws

Ke Han
Posted: Tue Sep 12, 2006 1:14 pm Reply with quote
User Joined: 02 Mar 2005 Posts: 107 Location: Shanghai
ok, this is not a question, its an answer... Wink

In order to set the mnesia directory when you start yaws, you must
quote the directory as shown below:

yaws --mnesiadir '"/path/to/mnesia"'
%% that's a single quote followed by a double quote to start the
string and the opposite to close the string

this is in synch with how you must quote the mnesia directory name
when you run erl.
erl -mnesia dir ''"/path/to/mnesia"

However, it is incongruous with how you pass in the yaws conf file:

yaws -conf /path/to/yaws.conf

Also, previous versions of yaws allowed you to use an unquoted mnesia
directory name by:

yaws -M /path/to/mnesia

I'm pretty sure this old method (-M with unquoted directory) no
longer works in yaws-1.65

I'm just posting here for reference and maybe someday the command
line switches will become more congruent and.or the docs will be more
detailed.

ke han



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message
tobbe
Posted: Tue Sep 12, 2006 1:40 pm Reply with quote
User Joined: 19 Jan 2005 Posts: 274 Location: Stockholm, Sweden
I have never liked those switches. I do it this way:

...
ok = application:load(mnesia),
ok = application:set_env(mnesia, dir, DBdir),
application:start(mnesia),
...

--Tobbe


ke han wrote:
> ok, this is not a question, its an answer... Wink
>
> In order to set the mnesia directory when you start yaws, you must
> quote the directory as shown below:
>
> yaws --mnesiadir '"/path/to/mnesia"'
> %% that's a single quote followed by a double quote to start the
> string and the opposite to close the string
>
> this is in synch with how you must quote the mnesia directory name
> when you run erl.
> erl -mnesia dir ''"/path/to/mnesia"
>
> However, it is incongruous with how you pass in the yaws conf file:
>
> yaws -conf /path/to/yaws.conf
>
> Also, previous versions of yaws allowed you to use an unquoted mnesia
> directory name by:
>
> yaws -M /path/to/mnesia
>
> I'm pretty sure this old method (-M with unquoted directory) no
> longer works in yaws-1.65
>
> I'm just posting here for reference and maybe someday the command
> line switches will become more congruent and.or the docs will be more
> detailed.
>
> ke han
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message Send e-mail Visit poster's website

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

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