This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Building & running
Andrewerr edited this page Jun 16, 2021
·
2 revisions
In order to build the webserver you need a UNIX-like operating system supporting erlang(e.g. Linux, MacOS). Additionally you should install rebar3 build system and git
.
On MacOS you can use homebrew package manager:
$ brew install rebar3 git
In order to build the webserver grab sources first:
$ git clone https://github.com/Andrewerr/MeowMeow
...
Now enter the directory with sources and use rebar3 to build the webserver:
$ cd MeowMeow/
$ rebar3 as prod release
...
If this has run without error then you have compiled the webserver successfully
In order to run the webserer you should deploy configuration first. You can use a default configs provided with the webserver:
$ cp -r configs/ /etc/MeowMeow/ # Probably you will need root(i.e. sudo)
Now you can run the webserver:
- In foreground:
$ ./_build/prod/rel/MeowMeow/bin/MeowMeow foreground
- In background(as a daemon):
$ ./_build/prod/rel/MeowMeow/bin/MeowMeow daemon
By default directory with the files to serve is /var/www
, but it can be changed using DocDir
directive in meow.conf