better documentation
This commit is contained in:
62
docs/install/debian.md
Normal file
62
docs/install/debian.md
Normal file
@@ -0,0 +1,62 @@
|
||||
---
|
||||
layout: default
|
||||
title: Debian
|
||||
permalink: /install/debian
|
||||
parent: Install
|
||||
---
|
||||
|
||||
## Debian installation
|
||||
|
||||
1. Install Node.js & yarn (**from root**)
|
||||
```bash
|
||||
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
|
||||
```
|
||||
<small>[source](https://github.com/nodesource/distributions/blob/master/README.md)</small>
|
||||
|
||||
1. Install Gancio
|
||||
```bash
|
||||
yarn add gancio --prod
|
||||
```
|
||||
|
||||
1. Setup with postgreSQL (optional as you can choose sqlite)
|
||||
```bash
|
||||
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
|
||||
```bash
|
||||
adduser gancio
|
||||
su gancio
|
||||
```
|
||||
|
||||
1. Test & launch interactive setup
|
||||
```bash
|
||||
gancio --help
|
||||
gancio setup --config config.json
|
||||
```
|
||||
|
||||
1. Start
|
||||
```bash
|
||||
gancio --help
|
||||
gancio start --config config.json
|
||||
```
|
||||
1. Point your web browser to [http://localhost:13120](http://localhost:13120) or where you selected during setup.
|
||||
|
||||
1. [Setup nginx as a proxy](/install/nginx)
|
||||
|
||||
1. Deploy in production
|
||||
If you don't use the [docker way](/install/docker), in production you should use something like **[pm2](http://pm2.keymetrics.io/)**:
|
||||
|
||||
```bash
|
||||
sudo yarn global add pm2
|
||||
pm2 gancio start --config config.json
|
||||
```
|
||||
Reference in New Issue
Block a user