Fix sandstorm storage path

This commit is contained in:
Romulus Urakagi Tsai 2020-01-14 07:06:20 +00:00
parent d26bf04bfa
commit 617fdaeb74

View file

@ -291,8 +291,12 @@ if (Meteor.isServer) {
}
function storagePath(defaultPath) {
/*
console.log('path', process.env.ATTACHMENTS_STORE_PATH);
console.log('env', process.env);
// FIXME
return '/var/attachments';
*/
const storePath = process.env.ATTACHMENTS_STORE_PATH;
return storePath ? storePath : defaultPath;
}