Verified Commit 84815244 authored by les's avatar les
Browse files

fix debian installation

parent 4cdc782b
......@@ -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
```
<small>[source](https://github.com/nodesource/distributions/blob/master/README.md)</small>
1. Install Gancio
1. Install Node.js & yarn
```bash
yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
sudo apt-get install -y nodejs
sudo npm install -g yarn
```
<small>[source](https://github.com/nodesource/distributions/blob/master/README.md)</small>
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
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment