Debian installation

  1. Install Node.js & yarn (from root)
    curl -sL https://deb.nodesource.com/setup_12.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

  2. Install Gancio
    yarn add gancio --prod
    
  3. 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;
    
  4. Create a user to run gancio from
    adduser gancio
    su gancio
    
  5. Test & launch interactive setup
    gancio --help
    gancio setup --config config.json
    
  6. Start
    gancio --help
    gancio start --config config.json
    
  7. Point your web browser to http://localhost:13120 or where you selected during setup.

  8. Setup nginx as a proxy

  9. Deploy in production
    If you don’t use the docker way, in production you should use something like pm2:
sudo yarn global add pm2
pm2 gancio start --config config.json