PartDB

From FlowerHouseWiki
Revision as of 08:28, 24 August 2023 by Tropaion (talk | contribs) (→‎Update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Network


IP: 192.168.88.16
MAC: 32:22:DA:F2:39:1B
Domain: parts.flowerhouse.at

System


OS: Debian Bullseye
RAM: 512MB
Cores: 1
Privileged: No

The PartDB-LXC is reachable under 192.168.88.16 which is located in the ServerVLAN.

The subdomain is parts.flowerhouse.at which is handled by the ReverseProxy.

Installation

Installation Guide

Update

Update Guide

Move into Part-DB folder

cd /var/www/partdb

Checkout master branch

git checkout master

Pull latest Part-DB version from GitHub

git pull

Checkout the latest version (or use a specific version, like described above)

git checkout $(git describe --tags $(git rev-list --tags --max-count=1))

Apply correct permission

chown -R www-data:www-data .

Install new composer dependencies

sudo -u www-data composer install --no-dev -o

Install yarn dependencies and build new frontend

sudo yarn install
sudo yarn build

Apply new database schemas (you should do a backup of your database file /var/www/partdb/var/app.db before)

sudo -u www-data php bin/console doctrine:migrations:migrate

Clear Part-DB cache

sudo -u www-data php bin/console cache:clear


Sources