mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Update Gruntfile.coffee
This commit is contained in:
parent
c3ff6c7770
commit
aca7b3f961
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,6 @@ exec = require("child_process").exec
|
||||||
rimraf = require "rimraf"
|
rimraf = require "rimraf"
|
||||||
Path = require "path"
|
Path = require "path"
|
||||||
semver = require "semver"
|
semver = require "semver"
|
||||||
settings = require "settings-sharelatex"
|
|
||||||
knox = require "knox"
|
knox = require "knox"
|
||||||
|
|
||||||
SERVICES = [{
|
SERVICES = [{
|
||||||
|
@ -220,11 +219,12 @@ module.exports = (grunt) ->
|
||||||
|
|
||||||
checkS3: (callback = (error) ->) ->
|
checkS3: (callback = (error) ->) ->
|
||||||
grunt.log.write "Checking S3 credentials... "
|
grunt.log.write "Checking S3 credentials... "
|
||||||
|
Settings = require "settings-sharelatex"
|
||||||
try
|
try
|
||||||
client = knox.createClient({
|
client = knox.createClient({
|
||||||
key: settings.s3.key
|
key: Settings.s3.key
|
||||||
secret: settings.s3.secret
|
secret: Settings.s3.secret
|
||||||
bucket: settings.s3.buckets.user_files
|
bucket: Settings.s3.buckets.user_files
|
||||||
})
|
})
|
||||||
catch e
|
catch e
|
||||||
grunt.log.error "FAIL."
|
grunt.log.error "FAIL."
|
||||||
|
|
Loading…
Reference in a new issue