"Setup with SQLite" doesn't contain hint to set "SETUP_COMPLETED=true" in .env file
Kovah opened this issue · comments
It does now, think it can be closed! 😃
As stated by WalterFaber in Kovah/LinkAce#340, this step also affects "Setup with PostgreSQL".
This page should also be updated.
Thank you.
Hm, this should not be needed anymore as of version 1.10 as the setting is not relevant anymore. 🤔 Did you run into issues with Postgres setup?
Yes. Here is my installation steps:
docker-compose up -d
with these environment variables:[...] environment: DB_CONNECTION: pgsql DB_HOST: postgresql DB_PORT: 5432 DB_DATABASE: linkace DB_USERNAME: usern@me DB_PASSWORD: p@ssword
docker exec linkace php artisan key:generate --show
- Add
APP_KEY
to environment variables anddocker-compose up -d --force-recreate
docker exec -it linkace php artisan migrate
docker exec -it linkace php artisan registeruser
When I access the Linkace host IP, the setup page is displayed. I have to create the .env
file and set the correct permissions to go through the steps. When I click Configure database, the process hangs and finally ends with 504 Gateway Time-out
. The log shows ERROR: SQLSTATE[HY000] [2006] MySQL server has gone away
.
If I repeat this exact steps but with SETUP_COMPLETED: true
in the environment variables from the beginning of the process, I see the login page and can login successfully after step 5.
Ah yes that makes sense. Have to look into that and find a suitable way to handle this scenario. Thanks for the details.
I have no head to find a clean solution so I added a hint to the docs for now.