From 848152444831f7ee01f75b432652e997c801b890 Mon Sep 17 00:00:00 2001 From: les Date: Tue, 27 Jul 2021 18:33:25 +0200 Subject: [PATCH] fix debian installation --- docs/install/debian.md | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/docs/install/debian.md b/docs/install/debian.md index c0aed773..29560381 100644 --- a/docs/install/debian.md +++ b/docs/install/debian.md @@ -7,24 +7,24 @@ parent: Install ## Debian installation -1. Install Node.js & yarn (**from root**) +1. Install dependencies ```bash -curl -sL https://deb.nodesource.com/setup_16.x | bash - -apt-get install -y nodejs -curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - -echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list -apt-get update && apt-get install yarn +sudo apt install curl gcc g++ make libpq-dev +``` + + +1. Install Node.js & yarn +```bash +curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - +sudo apt-get install -y nodejs +sudo npm install -g yarn ``` [source](https://github.com/nodesource/distributions/blob/master/README.md) -1. Install Gancio -```bash -yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null -``` 1. Setup with postgreSQL __(optional as you can choose sqlite)__ ```bash -apt-get install postgresql +sudo apt-get install postgresql # Create the database su postgres -c psql postgres=# create database gancio; @@ -34,18 +34,22 @@ postgres=# grant all privileges on database gancio to gancio; 1. Create a user to run gancio from ```bash -adduser gancio +sudo adduser gancio su gancio ``` +1. Install Gancio +```bash +yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null +``` 1. Launch interactive setup ```bash -gancio setup --config config.json +$(yarn global bin)/gancio setup --config config.json ``` 1. Start ```bash -gancio start --config config.json +$(yarn global bin)/gancio start --config config.json ``` 1. Point your web browser to [http://localhost:13120](http://localhost:13120) or where you selected during setup. @@ -69,7 +73,8 @@ sudo pm2 startup -u gancio > Don't be lazy and [backup]({% link install/backup.md %}) your data! ```bash -sudo yarn global remove gancio -sudo yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null +yarn global remove gancio +yarn cache clean +yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null sudo service pm2 restart ```