mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
don't instal config with grunt
This commit is contained in:
parent
307f21287f
commit
7d5382f668
1 changed files with 0 additions and 13 deletions
|
@ -264,19 +264,6 @@ module.exports = (grunt) ->
|
||||||
exec "mkdir -p #{path}", callback
|
exec "mkdir -p #{path}", callback
|
||||||
async.series jobs, callback
|
async.series jobs, callback
|
||||||
|
|
||||||
installConfig: (callback = (error) ->) ->
|
|
||||||
src = "config/settings.development.coffee.example"
|
|
||||||
dest = "config/settings.development.coffee"
|
|
||||||
if !fs.existsSync(dest)
|
|
||||||
grunt.log.writeln "Creating config at #{dest}"
|
|
||||||
config = fs.readFileSync(src).toString()
|
|
||||||
config = config.replace /CRYPTO_RANDOM/g, () ->
|
|
||||||
crypto.randomBytes(64).toString("hex")
|
|
||||||
fs.writeFileSync dest, config
|
|
||||||
callback()
|
|
||||||
else
|
|
||||||
grunt.log.writeln "Config file already exists. Skipping."
|
|
||||||
callback()
|
|
||||||
|
|
||||||
runGruntInstall: (service, callback = (error) ->) ->
|
runGruntInstall: (service, callback = (error) ->) ->
|
||||||
dir = service.name
|
dir = service.name
|
||||||
|
|
Loading…
Reference in a new issue