Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
overleaf
Commits
b2a58949
Commit
b2a58949
authored
Jun 09, 2016
by
Henry Oswald
Browse files
don't instal config with grunt
parent
5d76a3a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Gruntfile.coffee
View file @
b2a58949
...
...
@@ -264,19 +264,6 @@ module.exports = (grunt) ->
exec
"mkdir -p
#{
path
}
"
,
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
)
->
)
->
dir
=
service
.
name
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment