Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document or define SQLite setup procedure #196

Closed
zacwest opened this issue Dec 30, 2020 · 4 comments
Closed

Document or define SQLite setup procedure #196

zacwest opened this issue Dec 30, 2020 · 4 comments
Labels
Enhancement Any requests for improvements or new features
Projects
Milestone

Comments

@zacwest
Copy link

zacwest commented Dec 30, 2020

Is your feature request related to a problem? Please describe.
It's possible to set up LinkAce using SQLite, for example in .env:

DB_CONNECTION=sqlite
DB_DATABASE=/path/to/db.sqlite

However, it is not possible to complete onboarding with SQLite.

Describe the solution you'd like
Add support for SQLite-driven databases during setup. Maybe add examples to e.g. env files.

Additional context
Some things I ran into while doing this:

You may need to touch the sqlite file, and you need to make sure both the file and its directory (so SQLite can create its wal, etc.) as writeable.

Getting an error during onboarding such as:

  • 2002] No such file or directory
  • 2002] Connection refused

You will need to skip the initial onboarding on /setup/database which doesn't allow you to go past. Manually navigating to the next step, /setup/account succeeds.

@zacwest zacwest added the Enhancement Any requests for improvements or new features label Dec 30, 2020
@Kovah
Copy link
Owner

Kovah commented Dec 30, 2020

Hi, thanks for trying LinkAce.
I will take a look into this, but is has no priority right now as I don't use SQLite.

@Kovah Kovah added this to the v1.4.0 milestone Mar 22, 2021
@Kovah Kovah added this to Backlog in Development via automation Mar 22, 2021
@Kovah Kovah moved this from Backlog to Release Queue in Development Mar 22, 2021
@Kovah
Copy link
Owner

Kovah commented Mar 25, 2021

I updated the docs with a dedicated guide for SQLite.
https://www.linkace.org/docs/v1/setup/setup-with-sqlite/

@Kovah Kovah closed this as completed Mar 28, 2021
Development automation moved this from Release Queue to Released Mar 28, 2021
@rogatty
Copy link

rogatty commented May 9, 2021

@Kovah thank you for adding the docs. I noticed there is one thing missing: DB_DATABASE=/app/database/database.sqlite. Without it, I was getting this error:

In SQLiteConnector.php line 34:

  Database (linkace) does not exist.

@Kovah
Copy link
Owner

Kovah commented May 9, 2021

Thank you! I've updated the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Any requests for improvements or new features
Projects
Development
  
Released
Development

No branches or pull requests

3 participants