mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-04 18:35:17 +02:00
SECRET is mandatory and .env should not be inside container (#2)
This commit is contained in:
parent
acf7f56e15
commit
6f624696ba
3 changed files with 9 additions and 1 deletions
|
@ -4,6 +4,10 @@ const initDockerSecrets = require('./initDockerSecrets');
|
|||
const normalizeTheme = require('./normalizeTheme');
|
||||
|
||||
const initApp = async () => {
|
||||
if (!process.env.SECRET) {
|
||||
console.error('ERROR: SECRET key is missing in environment variables');
|
||||
process.exit(1);
|
||||
}
|
||||
initDockerSecrets();
|
||||
await initFiles();
|
||||
await initConfig();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue