SQLite3

Description: SQLite3 is a lightweight database

Category: Storage

URL: https://railway.app/template/jOiNFt

4 Replies

anthony-mg
HOBBY

8 months ago

Suggestion to change the docs for this template, automatic repo creation step doesn't happen anymore: https://railway.app/changelog/2024-03-01-plugins-deleted#improved-template-deploy-flow
Manual forking must be done


tresorama
HOBBY

5 months ago

Thanks for this template.
How can i connect to the sqlite db file from an other service (web server) in the same railway project?

For reference, in local dev i have a env variable DATABASE_URL=file:path/to/db.sqlite and the file is on my local disk.
I don't know what i should put on railway env var...

DATABASE_URL=????????


tresorama

Thanks for this template.How can i connect to the sqlite db file from an other service (web server) in the same railway project?For reference, in local dev i have a env variable DATABASE_URL=file:path/to/db.sqlite and the file is on my local disk.I don't know what i should put on railway env var...DATABASE_URL=????????

hey, this sqlite template is not like the other databases template where you get an URL and use it, you would need to put your code inside this template or at least use it as a basis for your code.


passos

hey, this sqlite template is not like the other databases template where you get an URL and use it, you would need to put your code inside this template or at least use it as a basis for your code.

tresorama
HOBBY

5 months ago

oh ok!

Do you know if i create a volume in railway and attach it to both SQLite service and web server service it is possible to make it work?


SQLite3 - Railway Help Station