I’ve been trying to install Directs 10.8.3 using Docker in a Generic Port App. I would like to connect to a Supabase, but have also tried a SQLite config. The Supabase config exists with ERROR: Failed to sync extensions (seems it cannot create sub-directories of Extensions). The SQLite config exists with an error about connecting to the database.
First of all, welcome to Cleavr Forum and sorry about the delayed response.
It looks like Directus 10.8.3 is their latest minor release and you should be able to install the latest minor release by selecting the Install latest minor release option from the Directus Release Version selector while adding a new site.
The Cleavr installer works as expected, but I would prefer to use Directus with an external database, like Supabase. How would a Cleavr customer achieve that? What do you think about installing Directus with Docker on a Generic Port App?
Thank you for finding and linking the GitHub issues. I had come across one of them, although the “fix” did not work for me.
To update the database-related settings for your project, go to “Deployments,” then navigate to “Deployment Workflow” and click on “Environment.” Modify the necessary variables related to the database.
Remember, changes in these settings only take effect after a redeployment. As the 1-click setup doesn’t automatically configure a repository for your workflow, make sure to set up a repository. After that, you can perform the deployment to apply the changes you made to the database settings.
If you want to setup a new project, you can perform the following set of activities:
Create a new Directus site without enabling the “Setup Database” option. This ensures you get the default setup instead of a fully configured Directus app.
In the deployment workflow, configure the code repository settings. If you don’t have a Directus project yet, you can fork our default repository at GitHub - cleavr/cleavr-setup-directus.
Once the repository is set up, update the environment variables with the required values. This step involves providing the necessary information for your Directus project to work correctly. In this case add Supabase details.
Trigger the deployment process. This step activates the deployment of your Directus site with the updated configurations and environment variables.
I hope that helps. Please let us know if you’ve any other issues or questions. We’re here to help.
I’ve tried a few things with no luck. To note:
I have tried the steps above multiple times (using the cleavr default repo).
I have tried using the “1-click” Directus install (that works as expected) and copying all ENV vars to a site without the Setup Database option (changing domain and port vars).
The deployment steps all show “completed”, but the deployment consistently errors out.
Thoughts?
2024-01-12T01:08:17: PM2 log: App name:yemmmyqftgbw3qeo9585.cleavr.one id:13 disconnected 2024-01-12T01:08:17: PM2 log: App [yemmmyqftgbw3qeo9585.cleavr.one:13] exited with code [0] via signal [SIGINT] 2024-01-12T01:08:17: PM2 log: Script /home/repo/yemmmyqftgbw3qeo9585.cleavr.one/current/.cleavr.runner.js had too many unstable restarts (16). Stopped. "errored"