Merge pull request #5381 from overleaf/jpa-sqlite-cleanup

[misc] cleanup some more references following the removal of sqlite

GitOrigin-RevId: db5db9c0e2ba2557b11d64f65fdb5db1dcd2ec74
This commit is contained in:
Jakob Ackermann 2021-10-27 11:50:54 +02:00 committed by Copybot
parent 4b996c53d3
commit 03b4e02c0f
3 changed files with 0 additions and 30 deletions

View file

@ -27,9 +27,3 @@ chown www-data:www-data /var/lib/sharelatex/tmp/uploads
mkdir -p /var/lib/sharelatex/tmp/dumpFolder mkdir -p /var/lib/sharelatex/tmp/dumpFolder
chown www-data:www-data /var/lib/sharelatex/tmp/dumpFolder chown www-data:www-data /var/lib/sharelatex/tmp/dumpFolder
if [ ! -e "/var/lib/sharelatex/data/db.sqlite" ]; then
touch /var/lib/sharelatex/data/db.sqlite
fi
chown www-data:www-data /var/lib/sharelatex/data/db.sqlite

View file

@ -153,25 +153,6 @@ const settings = {
project_history: redisConfig, project_history: redisConfig,
}, },
// The compile server (the clsi) uses a SQL database to cache files and
// meta-data. sqlite is the default, and the load is low enough that this will
// be fine in production (we use sqlite at sharelatex.com).
//
// If you want to configure a different database, see the Sequelize documentation
// for available options:
//
// https://github.com/sequelize/sequelize/wiki/API-Reference-Sequelize#example-usage
//
mysql: {
clsi: {
database: 'clsi',
username: 'clsi',
password: '',
dialect: 'sqlite',
storage: Path.join(DATA_DIR, 'db.sqlite'),
},
},
// File storage // File storage
// ------------ // ------------

View file

@ -104,11 +104,6 @@ sudo chmod g+s compiles
This is a facet of the way docker works on Linux. See this [upstream issue](https://github.com/moby/moby/issues/7198) This is a facet of the way docker works on Linux. See this [upstream issue](https://github.com/moby/moby/issues/7198)
Config
------
The CLSI will use a SQLite database by default, but you can optionally set up a MySQL database and then fill in the database name, username and password in the config file at `config/settings.development.js`.
API API
--- ---