Link Search Menu Expand Document

Debian installation

  1. Install dependencies
    sudo apt install curl gcc g++ make libpq-dev
    
  2. Install Node.js & yarn
    curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
    sudo apt-get install -y nodejs
    sudo npm install -g yarn
    

    source

  3. Setup with postgreSQL (optional as you can choose sqlite)
    sudo 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;
    
  4. Create a user to run gancio from
    sudo adduser --group --system --shell /bin/false --home /opt/gancio gancio
    
  5. Install Gancio
    sudo yarn global add --silent https://gancio.org/latest.tgz 2> /dev/null
    
  6. Setup systemd service and reload systemd
    sudo wget http://gancio.org/gancio.service -O /etc/systemd/system/gancio.service
    sudo service daemon-reload
    
  7. Start gancio service (this should listen on port 13120)
    sudo service gancio start
    
  8. Setup nginx as a proxy

  9. Point your web browser to your domain :tada:

Upgrade

Backup your data

Backup your data is generally a good thing to do and this is especially true before upgrading. Don’t be lazy and backup your data!

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