mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Added Meteor-Files WRITEABLE_PATH for Sandstorm, Snap and Source.
Thanks to xet7 ! Related export WRITABLE_PATH=$SNAP_COMMON/wekan-uploads/
This commit is contained in:
parent
b378bb55ac
commit
cc0658a225
4 changed files with 11 additions and 4 deletions
|
@ -1127,7 +1127,8 @@ Migrations.add('add-card-details-show-lists', () => {
|
|||
});
|
||||
|
||||
Migrations.add('migrate-attachments-collectionFS-to-ostrioFiles', () => {
|
||||
const storagePath = Attachments.storagePath();
|
||||
//const storagePath = Attachments.storagePath();
|
||||
const storagePath = process.env.WRITABLE_PATH;
|
||||
if (!fs.existsSync(storagePath)) {
|
||||
console.log("create storagePath because it doesn't exist: " + storagePath);
|
||||
fs.mkdirSync(storagePath, { recursive: true });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue