Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
The source code repository for twoorl.com
Branch: master
Pull request Compare This branch is even with yariv:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ebin
elib
migrations
src
www/static
.gitignore
COPYING
Emakefile
Makefile
README.txt
twoorl.sql

README.txt

To run Twoorl follow the following steps:

- Get the latest versiona of ErlyWeb (prior to 0.7.1, this would be from trunk) and Yaws
- Install MySQL and create a MySQL database for twoorl.
- Run twoorl.sql to create the Twoorl tables.
- Edit src/twoorl_app.hrl with your appropriate environment variables.
- Compile src/twoorl.erl with 'erlc'.
- Edit yaws.conf to add the ErlyWeb application settings for Twoorl.
- Start Yaws and in the shell, type "twoorl:start()". Alternatively, pass Yaws the parameter "--runmon twoorl".

Cheers!
Yariv

To run in embedded mode:

$ make clean && make
$ erl -sname twoorlapp -setcookie twoorl -mnesia dir "'twoorl.mnesia'" -yaws embedded true -pa ebin -boot start_sasl
1> [application:start(X) || X <- [inets, crypto, mnesia, twoorl]].
[ok, ok, ok, ok]

# Nick Gerakines
Something went wrong with that request. Please try again.