sqlpage / SQLPage

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.
https://sql.datapage.app
MIT License
1.57k stars 89 forks source link

Configuration directory environment variable is ignored in the current development version #598

Closed lovasoa closed 3 weeks ago

lovasoa commented 3 weeks ago

Discussed in https://github.com/lovasoa/SQLpage/discussions/596

Originally posted by **YoannCalamai** September 17, 2024 Hi, I run into something strange. With Docker, it is like sqlpage 0.29 is looking for the config directory inside /var/www/sqlpage. I may have missed something in the release notes. I map my config directory with a bind mount volume to /etc/sqlpage and my src to /var/www. The app works but no migration is applied and my custom handlebars are not found. I tried to change the env var SQLPAGE_CONFIGURATION_DIRECTORY and CONFIGURATION_DIRECTORY. My container has the right value inside these. But it change nothing. It works on v0.28.0 but not with the image lovasoa/sqlpage:main Here is the error message I got: `sqlpage::webserver::database::migrations] Not applying database migrations because '/var/www/sqlpage/migrations' does not exist` Here is a small example to replicate the issue [configdir_issue.zip](https://github.com/user-attachments/files/17025298/configdir_issue.zip) Can you help me, please?