Skip to content

Commit e8558c7

Browse files
committed
chore: Update Makefile and BackendRunnerService
Update Makefile to include .env file and remove duplicate inclusion. Update BackendRunnerService to read package.json from the correct path.
1 parent 5380873 commit e8558c7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
include .env
21
IMG_NAME = "ghcr.io/libertech-fr/sesame-deamon"
32
BASE_NAME = "sesame"
43
APP_NAME = "sesame-daemon"
54
PLATFORM = "linux/amd64"
65
PKG_TARGETS = "linux,macos,win"
6+
include .env
77

88
.DEFAULT_GOAL := help
99
help:

src/backend-runner/backend-runner.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ export class BackendRunnerService implements OnApplicationBootstrap, OnModuleIni
4343
) {
4444
this._package = {};
4545
try {
46-
this._package = JSON.parse(readFileSync('package.json', 'utf-8'));
46+
this._package = JSON.parse(readFileSync('/snapshot/data/package.json', 'utf-8'));
4747
} catch (e) {
4848
this._logger.error('Error reading package.json file: ', e);
4949
this._package = {};
5050
}
51+
// console.log('pkg', (process as any).pkg)
52+
// console.log('pkg', this._package)
5153
}
5254

5355
public async onModuleInit() {

0 commit comments

Comments
 (0)