Skip to content

Commit edc9daf

Browse files
committed
Rework attachments and test screenshots storage
1 parent 9204847 commit edc9daf

File tree

10 files changed

+4
-17
lines changed

10 files changed

+4
-17
lines changed

database/storage/.gitkeep

Whitespace-only changes.

docker-compose.test-parallel-base.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
source: ./scripts
2828
target: /opt
2929
- type: bind
30-
source: ./database/storage
30+
source: ./docker/storage
3131
target: /var/storage
3232
read_only: false
3333

@@ -46,7 +46,7 @@ services:
4646
target: /etc/mysql/conf.d
4747
- type: bind
4848
read_only: true
49-
source: ./database/populate
49+
source: ./docker/database/populate
5050
target: /docker-entrypoint-initdb.d
5151

5252
volumes:

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ services:
3636
target: /opt
3737
- type: bind
3838
read_only: false
39-
source: ./database/storage
39+
source: ./docker/storage
4040
target: /var/storage
4141

4242
database:
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
/data/*
21
/storage/*
File renamed without changes.
File renamed without changes.

docs/DEVELOPMENT.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@
44
### Requirements
55
NodeJS - `v22` (min)
66
### Configuration
7-
The following `.env` configuration is the bare minimum required for development. It must be placed in the top dir.
8-
```ini
9-
; Database
10-
MYSQL_ROOT_PASSWORD=cern
11-
OPENID_ID=
12-
OPENID_SECRET=
13-
OPENID_REDIRECT=
14-
15-
JWT_SECRET=
16-
17-
ATTACHMENT_PATH=/var/storage
18-
```
197

208
On mac, the file database/configuration/my.cnf must be modified to set this variable to 1 :
219
```

lib/server/middleware/multer.middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const multer = require('multer');
1515

1616
const attachmentStorage = multer.diskStorage({
1717
destination: (_request, _file, callback) => {
18-
const path = process.env?.ATTACHMENT_PATH || '/var/storage';
18+
const path = process.env?.ATTACHMENT_PATH || '/tmp';
1919
callback(null, path);
2020
},
2121

0 commit comments

Comments
 (0)