« Grist » : différence entre les versions

De Reliable Brain
 
(2 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
  sudo apt-get update
  nvm install 18
  sudo apt-get install -y ca-certificates curl gnupg
  npm install -g yarn
  sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
 
NODE_MAJOR=18
  echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
 
  sudo apt-get update
  sudo apt-get install nodejs -y


=== Installer Grist ===
=== Installer Grist ===
git clone https://github.com/gristlabs/grist-core.git
cd grist-core/
  yarn install
  yarn install
  yarn run build:prod
  yarn run build:prod
  yarn run install:python
  yarn run install:python
  yarn start
  yarn start
# Grist will be available at http://localhost:8484/
=== 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 ==
== Paramètres ==

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>