Skip to content
GitLab
Menu
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
b0a759ff
Commit
b0a759ff
authored
May 28, 2014
by
James Allen
Browse files
Use spawn to run fpm
parent
d2ba7da0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Gruntfile.coffee
View file @
b0a759ff
...
...
@@ -307,18 +307,18 @@ module.exports = (grunt) ->
buildDeb
:
(
callback
=
(
error
)
->
)
->
# TODO: filestore uses local 'uploads' directory, not configurable in settings
command
=
[
"fpm"
,
"-s"
,
"dir"
,
"-t"
,
"deb"
,
"-n"
,
"sharelatex"
,
"-v"
,
"0.0.1"
,
"--verbose"
]
command
=
[
"-s"
,
"dir"
,
"-t"
,
"deb"
,
"-n"
,
"sharelatex"
,
"-v"
,
"0.0.1"
,
"--verbose"
]
command
.
push
(
"--maintainer"
,
"
'
ShareLaTeX <team@sharelatex.com>
'
"
"--maintainer"
,
"ShareLaTeX <team@sharelatex.com>"
"--config-files"
,
"/etc/sharelatex/settings.coffee"
,
"--directories"
,
"/var/data/sharelatex"
"--directories"
,
"/var/log/sharelatex"
)
command
.
push
(
"--depends"
,
"
'
redis-server > 2.6.12
'
"
"--depends"
,
"
'
mongodb-10gen > 2.4.0
'
"
"--depends"
,
"
'
nodejs > 0.10.0
'
"
"--depends"
,
"redis-server > 2.6.12"
"--depends"
,
"mongodb-10gen > 2.4.0"
"--depends"
,
"nodejs > 0.10.0"
)
template
=
fs
.
readFileSync
(
"package/upstart/sharelatex-template"
).
toString
()
...
...
@@ -359,12 +359,9 @@ module.exports = (grunt) ->
command
.
push
(
"package/config/settings.coffee=/etc/sharelatex/settings.coffee"
)
console
.
log
command
.
join
(
" "
)
exec
command
.
join
(
" "
),
(
error
,
stdout
,
stderr
)
->
return
callback
(
error
)
if
error
?
console
.
log
stdout
console
.
error
stderr
if
stderr
?
callback
()
console
.
log
"fpm "
+
command
.
join
(
" "
)
proc
=
spawn
"fpm"
,
command
,
stdio
:
"inherit"
proc
.
on
"close"
,
callback
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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