Added the config and upload path for importing files.

pull/475/head
Ruslan Baidan 2023-01-12 10:30:10 +01:00
parent 0a7fcacdc6
commit 7f923907eb
No known key found for this signature in database
GPG Key ID: 4B7724C136BF1D89
6 changed files with 17 additions and 1 deletions

10
.gitignore vendored
View File

@ -22,4 +22,12 @@ module/
npm-debug.log
node_modules/
bin/
data/*
!data/import/files/.gitkeep
data/import/files/*
!data/cache/.gitkeep
data/cache/*
!data/DoctrineORMModule/Proxy/.gitkeep
data/DoctrineORMModule/Proxy/*
!data/LazyServices/Proxy/.gitkeep
data/LazyServices/Proxy/*
.docker/mariaDb/data/*

View File

@ -10,6 +10,9 @@
* in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
* credentials from accidentally being committed into version control.
*/
$appdir = getenv('APP_DIR') ?: '/var/lib/monarc';
$package_json = json_decode(file_get_contents('./package.json'), true);
return [
@ -113,4 +116,9 @@ return [
'baseUrl' => 'http://127.0.0.1:5005',
'apiKey' => '',
],
'import' => [
'uploadFolder' => $appdir . '/data/import/files',
'isBackgroundProcessActive' => true,
],
];

View File

View File

0
data/cache/.gitkeep vendored Normal file
View File

View File