Merge branch 'master' into recurrent_events

This commit is contained in:
lesion
2019-07-17 11:05:13 +02:00
13 changed files with 240 additions and 14 deletions

View File

@@ -7,13 +7,13 @@ parent: Setup
## Classic setup
1. Install Node.js
1. Install Node.js and postgreSQL
```bash
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs
apt-get install -y nodejs postgresql
```
<small>[source](https://github.com/nodesource/distributions/blob/master/README.md)</small>
2. Install Gancio
1. Install Gancio
```bash
npm install --global gancio
```
@@ -26,19 +26,40 @@ postgres=# create user gancio with encrypted password 'gancio';
postgres=# grant all privileges on database gancio to gancio;
```
4. Create a new user
1. Create a database (optional as you can use sqlite, but recommended)
```bash
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;
```
1. Create a user to run gancio from
```bash
adduser gancio
su gancio
```
5. Setup & test
1. Test & launch interactive setup
```bash
gancio --help
gancio setup
```
1. Start
```bash
gancio --help
gancio setup
gancio start
```
1. Point your web browser to [http://localhost:13120](http://localhost:13120) or where you selected during setup.
6. Enjoy :tada:
Point your web browser to [http://localhost:3000](http://localhost:3000)
1. [Setup nginx as a proxy](/setup/nginx)
1. Deploy in production
If you don't use the [docker way](/setup/docker), in production you should use something like **[pm2](http://pm2.keymetrics.io/)**:
```bash
sudo npm install --global pm2
pm2 gancio start
```