Actions
Installation » History » Revision 5
« Previous |
Revision 5/9
(diff)
| Next »
Greg Burri, 11/23/2008 02:01 PM
Installation¶
- This guide is based on a Debian distribution.
- The euphorik root directory is "/var/euphorik" (for example)
- All line beginning with a '$' is a command line in the System shell
- All line beginning with a '>' is a command line in the Erlang shell
- You can start euphorik in development mode with "$cd /var/euphorik/tools ; ./start_yaws.sh"
- Build Euphorik
$cd /var/euphorik/modules ; make
- Install Yaws
- $apt-get install yaws
- Configure Yaws (for production use)
- The virtual server looks like that in "/etc/yaws/conf.avail/euphorik.conf".
ebin_dir = /var/euphorik/modules/ebin include_dir = /var/euphorik/modules/include <server localhost> port = 8081 listen = 0.0.0.0 docroot = /var/euphorik allowed_scripts = [yaws] appmods = <request, euphorik_requests> start_mod = euphorik_daemon </server>
- Make a symlink in "conf.d" with
$cd /etc/yaws/conf.d/ ; ln -s "/etc/yaws/conf.avail/euphorik.conf"
- Edit the file '/etc/init.d/yaws' and substitue the following line
script="$DAEMON -I $YAWS_ID $@"
by this one$DAEMON --sname yaws --mnesiadir \"/var/euphorik/BD\" -I $YAWS_ID $@
- The virtual server looks like that in "/etc/yaws/conf.avail/euphorik.conf".
- Initialize the database
- The directory "/var/euphorik/BD" must be writable for the yaws user
- Stop Yaws (in root)
$/etc/init.d/yaws stop
- Launch an Erlang Node
$cd /var/euphorik/module/ebin
- $erl -sname yaws -mnesia dir /euphorik/var/BD
- Load the module :
>l(euphorik_bd_admin).
- Make the DB :
>euphorik_bd_admin:create().
- Start Yaws :
$/etc/init.d/yaws start
Updated by Greg Burri almost 16 years ago · 5 revisions