Contents

Erlang

Wiki

> mkdir /home/joe/installed
> cp wiki.tgz /home/joe/installed
> cd /home/joe/installed
> tar -xzvf wiki.tgz
> ... wiki is unpacked into a sub-directory called wiki
> cd wiki
> make
  • wiki.sh
## You will have to edit the following three variables
##   $ROOT = path to the wiki code and store
##   $PORT = port to run as
##   $ERL  = location of erlang
ROOT=/home/joe/wiki
PORT=4999
ERL=/home/joe/installed/otp_src_R8B-2/bin/erl
> cd /home/joe/installed/wiki
> emacs wiki.sh
... edit environment variables 
> cd /home/joe/installed/wiki 
./wiki.sh debug
Erlang (BEAM) emulator version 5.1.2 [source]

Eshell V5.1.2  (abort with ^G)
1> Start:{'4992','/home/joe/installed/wiki/store'}
Starting a port server on 4992...
# start my local demons
/etc/rc.d/joe_services.sh &
  • joe_services.sh
#!/bin/sh
## start my local demons

for i in /home/joe/services/*.sh 
  do
    /bin/su joe $i start
  done
Last modified: 2007-05-02