Random secret when run, not when build
This commit is contained in:
parent
697836579b
commit
cd50ab17b3
2 changed files with 14 additions and 4 deletions
11
run.sh
Executable file
11
run.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p storage
|
||||
|
||||
if [ ! -f ".env" ]; then
|
||||
cp .env.example .env
|
||||
sed -i "s#HVuwh1dmaFhg4q1fef7xI4D6UeV7ImGK6NTp7i9eH6qiyJ9kxsvqPu29JXnhNGQY#$(head -c 12 /dev/random | base64)#" .env
|
||||
fi
|
||||
|
||||
npm run start
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue