get rid of config commands

This commit is contained in:
Henry Oswald 2016-06-09 16:59:57 +01:00
parent 7d5382f668
commit 240280a0ae

View file

@ -51,7 +51,6 @@ SERVICES = [{
repo: "https://github.com/sharelatex/spelling-sharelatex.git" repo: "https://github.com/sharelatex/spelling-sharelatex.git"
version: "master" version: "master"
}] }]
module.exports = (grunt) -> module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-bunyan' grunt.loadNpmTasks 'grunt-bunyan'
grunt.loadNpmTasks 'grunt-execute' grunt.loadNpmTasks 'grunt-execute'
@ -109,9 +108,8 @@ module.exports = (grunt) ->
"Misc": [ "Misc": [
"help" "help"
] ]
"Install tasks": ("install:#{service.name}" for service in SERVICES).concat(["install:all", "install", "install:dirs", "install:config"]) "Install tasks": ("install:#{service.name}" for service in SERVICES).concat(["install:all", "install", "install:dirs"])
"Update tasks": ("update:#{service.name}" for service in SERVICES).concat(["update:all", "update"]) "Update tasks": ("update:#{service.name}" for service in SERVICES).concat(["update:all", "update"])
"Config tasks": ["install:config"]
"Checks": ["check", "check:redis", "check:latexmk", "check:s3", "check:make"] "Checks": ["check", "check:redis", "check:latexmk", "check:s3", "check:make"]
for service in SERVICES for service in SERVICES
@ -127,14 +125,13 @@ module.exports = (grunt) ->
done = @async() done = @async()
Helpers.createNewRelease(service, grunt.option("release"), done) Helpers.createNewRelease(service, grunt.option("release"), done)
grunt.registerTask 'install:config', "Copy the example config into the real config", () ->
Helpers.installConfig @async()
grunt.registerTask 'install:dirs', "Copy the example config into the real config", () -> grunt.registerTask 'install:dirs', "Copy the example config into the real config", () ->
Helpers.createDataDirs @async() Helpers.createDataDirs @async()
grunt.registerTask 'install:all', "Download and set up all ShareLaTeX services", grunt.registerTask 'install:all', "Download and set up all ShareLaTeX services",
["check:make"].concat( ["check:make"].concat(
("install:#{service.name}" for service in SERVICES) ("install:#{service.name}" for service in SERVICES)
).concat(["install:config", "install:dirs"]) ).concat([ "install:dirs"])
grunt.registerTask 'install', 'install:all' grunt.registerTask 'install', 'install:all'
grunt.registerTask 'update:all', "Checkout and update all ShareLaTeX services", grunt.registerTask 'update:all', "Checkout and update all ShareLaTeX services",
["check:make"].concat( ["check:make"].concat(
@ -445,4 +442,3 @@ module.exports = (grunt) ->
template = fs.readFileSync("package/upstart/sharelatex-template.conf").toString() template = fs.readFileSync("package/upstart/sharelatex-template.conf").toString()
for service in SERVICES for service in SERVICES
fs.writeFileSync "package/upstart/sharelatex-#{service.name}.conf", template.replace(/__SERVICE__/g, service.name) fs.writeFileSync "package/upstart/sharelatex-#{service.name}.conf", template.replace(/__SERVICE__/g, service.name)