mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] move the sqlite database into a db/ directory
This commit is contained in:
parent
5b1656b884
commit
3309adf2ad
5 changed files with 9 additions and 5 deletions
|
@ -5,3 +5,4 @@ gitrev
|
||||||
.npm
|
.npm
|
||||||
.nvmrc
|
.nvmrc
|
||||||
nodemon.json
|
nodemon.json
|
||||||
|
db/
|
||||||
|
|
|
@ -24,5 +24,7 @@ COPY . /app
|
||||||
FROM base
|
FROM base
|
||||||
|
|
||||||
COPY --from=app /app /app
|
COPY --from=app /app /app
|
||||||
|
RUN mkdir -p db \
|
||||||
|
&& chown node:node db
|
||||||
|
|
||||||
CMD ["node", "--expose-gc", "app.js"]
|
CMD ["node", "--expose-gc", "app.js"]
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
clsi
|
clsi
|
||||||
--acceptance-creds=None
|
--acceptance-creds=None
|
||||||
|
--data-dirs=db
|
||||||
--dependencies=
|
--dependencies=
|
||||||
--docker-repos=gcr.io/overleaf-ops
|
--docker-repos=gcr.io/overleaf-ops
|
||||||
--env-add=
|
--env-add=
|
||||||
|
|
|
@ -9,7 +9,7 @@ module.exports = {
|
||||||
username: 'clsi',
|
username: 'clsi',
|
||||||
dialect: 'sqlite',
|
dialect: 'sqlite',
|
||||||
storage:
|
storage:
|
||||||
process.env.SQLITE_PATH || Path.resolve(__dirname + '/../db.sqlite'),
|
process.env.SQLITE_PATH || Path.resolve(__dirname + '/../db/db.sqlite'),
|
||||||
pool: {
|
pool: {
|
||||||
max: 1,
|
max: 1,
|
||||||
min: 1
|
min: 1
|
||||||
|
@ -65,8 +65,7 @@ if (process.env.DOCKER_RUNNER) {
|
||||||
dockerRunner: process.env.DOCKER_RUNNER === 'true',
|
dockerRunner: process.env.DOCKER_RUNNER === 'true',
|
||||||
docker: {
|
docker: {
|
||||||
image:
|
image:
|
||||||
process.env.TEXLIVE_IMAGE ||
|
process.env.TEXLIVE_IMAGE || 'quay.io/sharelatex/texlive-full:2017.1',
|
||||||
'quay.io/sharelatex/texlive-full:2017.1',
|
|
||||||
env: {
|
env: {
|
||||||
HOME: '/tmp'
|
HOME: '/tmp'
|
||||||
},
|
},
|
||||||
|
@ -93,8 +92,7 @@ if (process.env.DOCKER_RUNNER) {
|
||||||
|
|
||||||
module.exports.path.synctexBaseDir = () => '/compile'
|
module.exports.path.synctexBaseDir = () => '/compile'
|
||||||
|
|
||||||
module.exports.path.sandboxedCompilesHostDir =
|
module.exports.path.sandboxedCompilesHostDir = process.env.COMPILES_HOST_DIR
|
||||||
process.env.COMPILES_HOST_DIR
|
|
||||||
|
|
||||||
module.exports.path.synctexBinHostPath = process.env.SYNCTEX_BIN_HOST_PATH
|
module.exports.path.synctexBinHostPath = process.env.SYNCTEX_BIN_HOST_PATH
|
||||||
}
|
}
|
||||||
|
|
2
services/clsi/db/.gitignore
vendored
Normal file
2
services/clsi/db/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*
|
||||||
|
!.gitignore
|
Loading…
Reference in a new issue