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
|
||||
.nvmrc
|
||||
nodemon.json
|
||||
db/
|
||||
|
|
|
@ -24,5 +24,7 @@ COPY . /app
|
|||
FROM base
|
||||
|
||||
COPY --from=app /app /app
|
||||
RUN mkdir -p db \
|
||||
&& chown node:node db
|
||||
|
||||
CMD ["node", "--expose-gc", "app.js"]
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
clsi
|
||||
--acceptance-creds=None
|
||||
--data-dirs=db
|
||||
--dependencies=
|
||||
--docker-repos=gcr.io/overleaf-ops
|
||||
--env-add=
|
||||
|
|
|
@ -9,7 +9,7 @@ module.exports = {
|
|||
username: 'clsi',
|
||||
dialect: 'sqlite',
|
||||
storage:
|
||||
process.env.SQLITE_PATH || Path.resolve(__dirname + '/../db.sqlite'),
|
||||
process.env.SQLITE_PATH || Path.resolve(__dirname + '/../db/db.sqlite'),
|
||||
pool: {
|
||||
max: 1,
|
||||
min: 1
|
||||
|
@ -65,8 +65,7 @@ if (process.env.DOCKER_RUNNER) {
|
|||
dockerRunner: process.env.DOCKER_RUNNER === 'true',
|
||||
docker: {
|
||||
image:
|
||||
process.env.TEXLIVE_IMAGE ||
|
||||
'quay.io/sharelatex/texlive-full:2017.1',
|
||||
process.env.TEXLIVE_IMAGE || 'quay.io/sharelatex/texlive-full:2017.1',
|
||||
env: {
|
||||
HOME: '/tmp'
|
||||
},
|
||||
|
@ -93,8 +92,7 @@ if (process.env.DOCKER_RUNNER) {
|
|||
|
||||
module.exports.path.synctexBaseDir = () => '/compile'
|
||||
|
||||
module.exports.path.sandboxedCompilesHostDir =
|
||||
process.env.COMPILES_HOST_DIR
|
||||
module.exports.path.sandboxedCompilesHostDir = process.env.COMPILES_HOST_DIR
|
||||
|
||||
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