mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
1.5 KiB
1.5 KiB
layout | title | permalink | parent |
---|---|---|---|
default | Classic | /setup/classic | Setup |
Classic setup
- Install Node.js and postgreSQL
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs postgresql
- Install Gancio
npm install --global gancio
- Create database (optional)
apt install postgresql
sudo -u postgres psql
postgres=# create database gancio;
postgres=# create user gancio with encrypted password 'gancio';
postgres=# grant all privileges on database gancio to gancio;
- Create a database (optional as you can use sqlite, but recommended)
sudo -u postgres psql
postgres=# create database gancio;
postgres=# create user gancio with encrypted password 'gancio';
postgres=# grant all privileges on database gancio to gancio;
- Create a user to run gancio from
adduser gancio
su gancio
- Test & launch interactive setup
gancio --help
gancio setup
- Start
gancio --help
gancio setup
gancio start
-
Point your web browser to http://localhost:13120 or where you selected during setup.
-
Deploy in production
If you don't use the docker way, in production you should use something like pm2:
sudo npm install --global pm2
pm2 gancio start