Add dev script for incorporating process env variables
This commit is contained in:
parent
ef514f7b0a
commit
acabe0e80a
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Starting in dev mode"
|
||||
|
||||
rm run_dev.sh
|
||||
jq -r ".apps[0].env | keys[]" ./process.json | while read key ; do
|
||||
echo -n "$key=\"">> run_dev.sh
|
||||
echo -n "$(jq ".apps[0].env.$key" ./process.json)" >> run_dev.sh
|
||||
echo -n "\" ">> run_dev.sh
|
||||
done
|
||||
echo -n " node services/bluetooth" >> run_dev.sh
|
||||
|
||||
#cat run_dev.sh
|
||||
sh run_dev.sh
|
Loading…
Reference in New Issue