Hoe de Chatwoot Messaging Platform te Installeren op Debian 11

Volg deze stapsgewijze handleiding om het Chatwoot-platform op jouw Debian 11 server te installeren.

Stap 1: Update je systeem

Voordat je software installeert, is het belangrijk om je systeem bij te werken:

sudo apt update && sudo apt upgrade -y

Stap 2: Installeer vereisten

Chatwoot vereist verschillende afhankelijkheden om te draaien. Gebruik de volgende commando’s om ze te installeren:

sudo apt install -y git curl apt-transport-https gnupg2 redis-server postgresql postgresql-contrib libpq-dev build-essential nodejs

Stap 3: Installeer Yarn

Yarn is nodig om JavaScript-pakketten te beheren. Installeer het met deze commando’s:

curl -sL 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 update && sudo apt install yarn

Stap 4: Installeer Chatwoot

Kloon de Chatwoot-repository naar je server:

git clone https://github.com/chatwoot/chatwoot.git --branch stable

Navigeer naar de Chatwoot-map en installeer de benodigde gems en pakketten:

cd chatwoot
bundle install
yarn install

Stap 5: Configureer de database

Stel de PostgreSQL-database in:

sudo -u postgres psql
CREATE USER chatwoot WITH PASSWORD 'password';
ALTER ROLE chatwoot SUPERUSER;
CREATE DATABASE chatwoot_production OWNER chatwoot;
\q

Voer nu de database-migraties uit:

RAILS_ENV=production bundle exec rails db:setup

Stap 6: Precompileer assets

Precompileer de assets die nodig zijn voor Chatwoot:

RAILS_ENV=production bundle exec rails assets:precompile

Stap 7: Start Chatwoot

Start de Chatwoot-toepassing met de volgende commando’s:

RAILS_ENV=production bundle exec rails s

Stap 8: Configureer Nginx als een reverse proxy

Om Chatwoot over een domein te serveren, configureer je Nginx als een reverse proxy. Installeer Nginx:

sudo apt install nginx

Maak een Nginx-configuratiebestand voor Chatwoot:

sudo nano /etc/nginx/sites-available/chatwoot

Voeg de volgende inhoud toe:

server {
    listen 80;
    server_name jouwdomein.com;

    location / {
        proxy_pass http://localhost:3000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Activeer de configuratie en herstart Nginx:

sudo ln -s /etc/nginx/sites-available/chatwoot /etc/nginx/sites-enabled/
sudo systemctl restart nginx

Conclusie

Je hebt Chatwoot succesvol geïnstalleerd op je Debian 11 server. Je kunt nu toegang krijgen tot het platform via je domein en het gebruiken voor klantcommunicatie.

Linux VPS

Linux VPS UK

Linux VPS

VPS Windows

Serwer VPS Windows

VPS Linux VPSDeutschland

Linux VPS Hosting

VPS Linux VPSEspaña

Linux VPS Nederland

VPS Linux VPSItalia

VPS Linux VPSPortugal

VPS Linux VPS??????

VPS Linux VPS???????

VPS Linux VPS??

VPS Linux VPSSverige

VPS Linux VPSNorge

VPS Linux VPS????

VPS Linux VPSTürkiye

Remote Desktop Services (RDS)

RDS CAL (Client Access License)

Remote Desktop VPS

Keywords: windows vps uk, windows vps, uk windows vps, windows vps hosting uk, vps windows server, uk vps windows, vps windows, servidor vps windows, vps uk windows, vps with windows, virtual private server windows, windows virtual private server, windows vps server uk, vps for windows, servidores vps windows, vps windows uk, windows vps hosting, vps windows hosting, windows vps server, windows virtual private servers, vps on windows, vps windows servers, cheap windows vps uk, windowsvps, windows desktop vps, buy vps windows, windows server vps, windows 10 vps uk, rds services, rds cal, remote desktop services, remote desktop hosting

#windowsvps #vpshosting #ukvps #virtualserver #windowsvpsuk #vpsserver #hostingvps #cloudvps #windowsvpshosting #cheapvps #vpswithwindows #windowsserver #servervps #vpssolutions #vpswindows #rdscal #remotedesktop #remotedesktopvps #rds #windowsrds

vps windows