mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove password from clsi for sql
sequalise fails when it is set to null
This commit is contained in:
parent
3b06835499
commit
1ef8ea328c
5 changed files with 2407 additions and 110 deletions
2
services/clsi/.gitignore
vendored
2
services/clsi/.gitignore
vendored
|
@ -12,5 +12,7 @@ app.js
|
||||||
cache
|
cache
|
||||||
.vagrant
|
.vagrant
|
||||||
db.sqlite
|
db.sqlite
|
||||||
|
db.sqlite-wal
|
||||||
|
db.sqlite-shm
|
||||||
config/*
|
config/*
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
|
@ -42,4 +42,10 @@ module.exports =
|
||||||
sync: () ->
|
sync: () ->
|
||||||
logger.log dbPath:Settings.mysql.clsi.storage, "syncing db schema"
|
logger.log dbPath:Settings.mysql.clsi.storage, "syncing db schema"
|
||||||
sequelize.sync()
|
sequelize.sync()
|
||||||
|
.then(->
|
||||||
|
logger.log "db sync complete"
|
||||||
|
).catch((err)->
|
||||||
|
console.log err, "error syncing"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,11 @@ module.exports =
|
||||||
clsi:
|
clsi:
|
||||||
database: "clsi"
|
database: "clsi"
|
||||||
username: "clsi"
|
username: "clsi"
|
||||||
password: null
|
|
||||||
dialect: "sqlite"
|
dialect: "sqlite"
|
||||||
storage: process.env["SQLITE_PATH"] or Path.resolve(__dirname + "/../db.sqlite")
|
storage: process.env["SQLITE_PATH"] or Path.resolve(__dirname + "/../db.sqlite")
|
||||||
pool:
|
pool:
|
||||||
max: 1
|
max: 1
|
||||||
min: 0
|
min: 1
|
||||||
retry:
|
retry:
|
||||||
max: 10
|
max: 10
|
||||||
|
|
||||||
|
|
2494
services/clsi/package-lock.json
generated
2494
services/clsi/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -35,10 +35,10 @@
|
||||||
"mkdirp": "0.3.5",
|
"mkdirp": "0.3.5",
|
||||||
"mysql": "2.6.2",
|
"mysql": "2.6.2",
|
||||||
"request": "^2.21.0",
|
"request": "^2.21.0",
|
||||||
"sequelize": "4.38.0",
|
"sequelize": "^4.38.0",
|
||||||
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0",
|
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0",
|
||||||
"smoke-test-sharelatex": "git+https://github.com/sharelatex/smoke-test-sharelatex.git#v0.2.0",
|
"smoke-test-sharelatex": "git+https://github.com/sharelatex/smoke-test-sharelatex.git#v0.2.0",
|
||||||
"sqlite3": "4.0.2",
|
"sqlite3": "^4.0.2",
|
||||||
"underscore": "^1.8.2",
|
"underscore": "^1.8.2",
|
||||||
"v8-profiler": "^5.2.4",
|
"v8-profiler": "^5.2.4",
|
||||||
"wrench": "~1.5.4"
|
"wrench": "~1.5.4"
|
||||||
|
|
Loading…
Reference in a new issue