-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration
Justin Forest edited this page Mar 25, 2024
·
9 revisions
This section describes how to configure components.
Table of Contents:
When using the SQLite backend, you need to specify the name of the database to use. This variable does just that. The value is the file path, relative or absolute. Example:
$ SQLITE_PATH=./database.sqlite ./treemap
Or, you can put the path in your .env
file, see this example.
To create the database, use the provided schema file, like this:
$ sqlite3 ./database.sqlite < dev/schema-sqlite.sql
This environment variable controls how many worker threads will be running. For development purpose, one thread is enough. For production environment, it is recommended to run as many as you have CPU cores. It makes sense to run a few times more workers in case there are blocking tasks inside requests (we'll need to measure this).