James Allen 12 жил өмнө
parent
commit
a440b5435a

+ 5 - 0
.gitignore

@@ -4,4 +4,9 @@ node_modules
 
 
 web
 web
 document-updater
 document-updater
+clsi
+filestore
+
+compiles
+cache
 
 

+ 3 - 0
Gruntfile.coffee

@@ -12,6 +12,9 @@ SERVICES = [{
 }, {
 }, {
 	name: "clsi"
 	name: "clsi"
 	repo: "git@github.com:sharelatex/clsi-sharelatex.git"
 	repo: "git@github.com:sharelatex/clsi-sharelatex.git"
+}, {
+	name: "filestore"
+	repo: "git@github.com:sharelatex/filestore-sharelatex.git"
 }]
 }]
 
 
 
 

+ 15 - 3
config/settings.development.coffee

@@ -24,7 +24,9 @@ module.exports =
 	s3:
 	s3:
 		key: ""
 		key: ""
 		secret: ""
 		secret: ""
-		bucketName : ""
+		buckets:
+			# The S3 bucket name to store binary files in
+			user_files: ""
 
 
 	# Databases
 	# Databases
 	# ---------
 	# ---------
@@ -64,6 +66,9 @@ module.exports =
 		clsi:
 		clsi:
 			port: clsiPort = 3013
 			port: clsiPort = 3013
 			host: "localhost"
 			host: "localhost"
+		filestore:
+			port: filestorePort = 3009
+			host: "localhost"
 
 
 	# Tell each service where to find the other services. If everything
 	# Tell each service where to find the other services. If everything
 	# is running locally then this is easy, but they exist as separate config
 	# is running locally then this is easy, but they exist as separate config
@@ -77,6 +82,8 @@ module.exports =
 			url : "http://localhost:#{docUpdaterPort}"
 			url : "http://localhost:#{docUpdaterPort}"
 		clsi:
 		clsi:
 			url: "http://localhost:#{clsiPort}"
 			url: "http://localhost:#{clsiPort}"
+		filestore:
+			url: "http://localhost:#{filestorePort}"
 		thirdPartyDataStore:
 		thirdPartyDataStore:
 			url : "http://localhost:3002"
 			url : "http://localhost:3002"
 			emptyProjectFlushDelayMiliseconds: 5 * seconds
 			emptyProjectFlushDelayMiliseconds: 5 * seconds
@@ -99,8 +106,6 @@ module.exports =
 			port: 3007
 			port: 3007
 		blog:
 		blog:
 			port: 3008
 			port: 3008
-		filestore:
-			url: "http://localhost:3009"
 		templates_api:
 		templates_api:
 			url: "http://localhost:3014"
 			url: "http://localhost:3014"
 
 
@@ -217,3 +222,10 @@ module.exports =
 	# 	user: ""
 	# 	user: ""
 	# 	password: ""
 	# 	password: ""
 	# 	projectId: ""
 	# 	projectId: ""
+
+	# Filestore health check
+	# ----------------------
+	# Project and file details to check in filestore when calling /health_check
+	# health_check:
+	# 	project_id: ""
+	# 	file_id: ""