Closed sunflower-seed closed 9 months ago
@sunflower-seed is PartDB (legacy)
completely obsolete or would there be some kind of benefit in keeping both guides? I see that you replaced the guide in your PR #1717, but mention adding a second guide in the description of this issue.
@SalocinHB
According to the project site https://github.com/Part-DB/Part-DB-legacy
and the commits, there is no further development and the author calls it "deprecated".
In my personal opinion i would suggest to remove PartDB (legacy) now. This was unclear when i initially opened this issue.
PartDB-Server is the new symfony based version of PartDB, which has already a guide in the Uberlab.
The new version offers several new features so it might be a good idea to add a second guide or update the current one.
You can also upgrade from an PartDB (legacy) installation - which i did on my uberspace. Therefore you can basically follow the upgrade guide
Currently i'm not able to work out a full text guide, maybe i'll do it in the future, but i will already note the (few) caveats here, if your are nosy.
TL;DR
You can basically run the Part-DB-server by their installation instruction.
You only have to replace the
yarn install
command withnode --max_old_space_size=800 ./node_modules/webpack/bin/webpack.js
Step-by-Step in condensed version for Uberspace
curl -L https://github.com/Part-DB/Part-DB-server/archive/refs/tags/v1.2.0.tar.gz | tar -xzf - --strip-components=1
cp .env .env.local
DATABASE_URL
tomysql://isabell:password@127.0.0.1:3306/isabell_partdb?serverVersion=10.6.12
The server version can be gathered by callingmysql --version
(Left the current value here for better understanding).DEFAULT_LANG
as neededDEFAULT_URI
tohttps://isabell.uber.space/
MAILER_DSN
)smtp://isabell:password@host.uberspace.de:587
APP_SECRET
to a new value, e.g. the output ofhexdump -vn16 -e'4/4 "%08x" 1 "\n"' /dev/urandom
I'm not sure if this is necessarycomposer install -o --no-dev
yarn install
node --max_old_space_size=800 ./node_modules/webpack/bin/webpack.js
Just runningyarn build
would not work because an uberspace has a fixed memory limit. The current memory value of800
worked for me, but may differ, depending on the amount of apps running on your uberspace.php bin/console doctrine:migrations:migrate
public/
This is also known from other symfony based appspublic/.htaccess
file and changeFollowSymLinks
toSymLinksIfOwnerMatch
There are two occurrences in the file, keep in mind you change at least the one that is not commented out