Bots from its own place
This commit is contained in:
1 parent
cc9ba1d9fc
commit
51d73ff278
1 file changed
+8
-1
@@ -51,8 +51,15 @@ exports.newFileStorage = function newFileStorage() {
|
||||
let host = await getDevTeamHost(container)
|
||||
|
||||
if (host.url.indexOf('localhost') !== -1) {
|
||||
let fileLocation = process.env.STORAGE_PATH + '/' + container + '/' + filePath
|
||||
|
||||
let fileLocation
|
||||
|
||||
if (filePath.indexOf("/bots/") > 0) {
|
||||
fileLocation = process.env.BOTS_PATH + '/' + container + '/' + filePath
|
||||
} else {
|
||||
fileLocation = process.env.STORAGE_PATH + '/' + container + '/' + filePath
|
||||
}
|
||||
|
||||
logInfo('getTextFile: ' + fileLocation)
|
||||
|
||||
let fileContent = await readFileAsync(fileLocation)
|
||||
|
||||
Reference in new issue
Block a user