fix debian installation
This commit is contained in:
@@ -7,24 +7,24 @@ parent: Install
|
|||||||
|
|
||||||
## Debian installation
|
## Debian installation
|
||||||
|
|
||||||
1. Install Node.js & yarn (**from root**)
|
1. Install dependencies
|
||||||
```bash
|
```bash
|
||||||
curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
sudo apt install curl gcc g++ make libpq-dev
|
||||||
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
|
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
|
||||||
```
|
```
|
||||||
<small>[source](https://github.com/nodesource/distributions/blob/master/README.md)</small>
|
<small>[source](https://github.com/nodesource/distributions/blob/master/README.md)</small>
|
||||||
|
|
||||||
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)__
|
1. Setup with postgreSQL __(optional as you can choose sqlite)__
|
||||||
```bash
|
```bash
|
||||||
apt-get install postgresql
|
sudo apt-get install postgresql
|
||||||
# Create the database
|
# Create the database
|
||||||
su postgres -c psql
|
su postgres -c psql
|
||||||
postgres=# create database gancio;
|
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
|
1. Create a user to run gancio from
|
||||||
```bash
|
```bash
|
||||||
adduser gancio
|
sudo adduser gancio
|
||||||
su gancio
|
su gancio
|
||||||
```
|
```
|
||||||
|
1. Install Gancio
|
||||||
|
```bash
|
||||||
|
yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null
|
||||||
|
```
|
||||||
|
|
||||||
1. Launch interactive setup
|
1. Launch interactive setup
|
||||||
```bash
|
```bash
|
||||||
gancio setup --config config.json
|
$(yarn global bin)/gancio setup --config config.json
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Start
|
1. Start
|
||||||
```bash
|
```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.
|
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!
|
> Don't be lazy and [backup]({% link install/backup.md %}) your data!
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo yarn global remove gancio
|
yarn global remove gancio
|
||||||
sudo yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null
|
yarn cache clean
|
||||||
|
yarn global add --silent {{site.url}}/latest.tgz 2> /dev/null
|
||||||
sudo service pm2 restart
|
sudo service pm2 restart
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user