Add dev script for incorporating process env variables

This commit is contained in:
mmcwilliams 2017-08-29 08:23:18 -04:00
parent ef514f7b0a
commit acabe0e80a
1 changed files with 14 additions and 0 deletions

14
dev.sh Normal file
View File

@ -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