« Grist » : différence entre les versions

De Reliable Brain
(Page créée avec « == Installation sur Debian 11 == === Prérequis === apt install curl sudo gnupg2 === Installer YARN === curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn === Installer NodeJS === curl -fsSL https://fnm.vercel.app/install | bash »)
 
 
(7 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
== Installation sur Debian 11 ==
== Installation sur Debian 12 ==
=== Prérequis ===
=== Prérequis ===
apt install curl sudo gnupg2
=== Installer YARN via NVM ===
=== Installer YARN ===
  apt update
  curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
apt upgrade
  echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
apt install git python3.11-venv
  sudo apt-get update && sudo apt-get install yarn
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
=== Installer NodeJS ===
source ~/.bashrc
curl -fsSL https://fnm.vercel.app/install | bash
nvm install 18
npm install -g yarn
 
=== Installer Grist ===
  git clone https://github.com/gristlabs/grist-core.git
cd grist-core/
yarn install
yarn run build:prod
yarn run install:python
yarn start
=== Lancer Grist ===
IL faut d'abord paramétrer
nano .env
GRIST_HOST=0.0.0.0
 
Puis on lance enfin :
  export $(cat .env) && yarn start
 
==== Sources ====
YARN : https://www.linuxcapable.com/how-to-install-yarn-on-debian-linux/
 
== Paramètres ==
Selon https://github.com/gristlabs/grist-core/?tab=readme-ov-file
 
DEBUG=1
TYPEORM_DATABASE=gristdb
TYPEORM_HOST=postgresql-server.cahuet.com
TYPEORM_PASSWORD=<mot de passe compte grist>
TYPEORM_TYPE=postgres
TYPEORM_USERNAME=grist
GRIST_UI_FEATURES=helpCenter,templates,createSite,multiSite,multiAccounts,tutorials
GRIST_SUPPORT_EMAIL=<email d'admin>

Dernière version du 11 février 2024 à 03:36

Installation sur Debian 12

Prérequis

Installer YARN via NVM

apt update
apt upgrade
apt install git python3.11-venv
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrc
nvm install 18
npm install -g yarn

Installer Grist

git clone https://github.com/gristlabs/grist-core.git
cd grist-core/

yarn install
yarn run build:prod
yarn run install:python
yarn start

Lancer Grist

IL faut d'abord paramétrer

nano .env
GRIST_HOST=0.0.0.0

Puis on lance enfin :

export $(cat .env) && yarn start

Sources

YARN : https://www.linuxcapable.com/how-to-install-yarn-on-debian-linux/

Paramètres

Selon https://github.com/gristlabs/grist-core/?tab=readme-ov-file

DEBUG=1
TYPEORM_DATABASE=gristdb
TYPEORM_HOST=postgresql-server.cahuet.com
TYPEORM_PASSWORD=<mot de passe compte grist>
TYPEORM_TYPE=postgres
TYPEORM_USERNAME=grist
GRIST_UI_FEATURES=helpCenter,templates,createSite,multiSite,multiAccounts,tutorials
GRIST_SUPPORT_EMAIL=<email d'admin>