gancio-upstream/docs/install/debian.md
2021-06-04 15:34:40 +02:00

1.7 KiB

title permalink nav_order parent
Debian /install/debian 1 Install

Debian installation

  1. Install Node.js & yarn (from root)
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

source

  1. Install Gancio
yarn global add --silent https://gancio.org/latest.tgz 2> /dev/null
  1. Setup with postgreSQL (optional as you can choose sqlite)
apt-get install postgresql
# Create the database
su postgres -c psql
postgres=# create database gancio;
postgres=# create user gancio with encrypted password 'gancio';
postgres=# grant all privileges on database gancio to gancio;
  1. Create a user to run gancio from
adduser gancio
su gancio
  1. Launch interactive setup
gancio setup --config config.json
  1. Start
gancio start --config config.json
  1. Point your web browser to http://localhost:13120 or where you selected during setup.

  2. Setup nginx as a proxy

  3. To deploy gancio in production you should use something like pm2:

sudo yarn global add pm2
pm2 start gancio -- --config config.json

# Run this command to run your application as a service and automatically restart after a reboot:
pm2 startup # read the output!
sudo pm2 startup -u gancio

Upgrade

sudo yarn global add --silent https://gancio.org/latest.tgz  2> /dev/null
sudo service pm2 restart