From 57d7cc6f706f7fe59fe60f790a811e6a3b29e962 Mon Sep 17 00:00:00 2001 From: jebba Date: Wed, 22 Dec 2021 14:36:41 -0700 Subject: [PATCH] clone lila, setup mongo --- README-install.md | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/README-install.md b/README-install.md index 80c0386..b13ce16 100644 --- a/README-install.md +++ b/README-install.md @@ -587,13 +587,41 @@ Now we can actually install lila! See here: * https://github.com/ornicar/lila -Install thusly: +We'll install it in the Apache web tree. +Install thusly on server as `debian` user. ``` -git clone --recursive https://github.com/ornicar/lila.git +# Remove old directory +rm -rf /var/www/html +# Go to web directory +cd /var/www + +# Clone the Lila git repository to the `html` directory +git clone --recursive https://github.com/ornicar/lila.git html +``` + +## Create MongoDB +Create a new MongoDB database. ``` +# Go to new cloned dir +cd /var/www/html + +# Create MongoDB database indexes +mongo lichess bin/mongodb/indexes.js +``` + +Creating the MongoDB database should look something like this: + +``` +debian@mychestserver:/var/www/html$ mongo lichess bin/mongodb/indexes.js +MongoDB shell version v5.0.5 +connecting to: mongodb://127.0.0.1:27017/lichess?compressors=disabled&gssapiServiceName=mongodb +Implicit session: session { "id" : UUID("7b35e8f2-528c-4136-8b8f-7e9e21200857") } +MongoDB server version: 5.0.5 +``` + ## Install lila-ws * https://github.com/ornicar/lila-ws