add start script
This commit is contained in:
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
## How to run
|
## How to run
|
||||||
|
|
||||||
|
### Prod
|
||||||
|
|
||||||
|
```python
|
||||||
|
./start_app.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
### Dev
|
||||||
|
|
||||||
If you want a production environment set up your `.env` to provide an app key.
|
If you want a production environment set up your `.env` to provide an app key.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|||||||
41
start_app.sh
Executable file
41
start_app.sh
Executable file
@@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
URL_APP="http://127.0.0.1:5000"
|
||||||
|
|
||||||
|
usage(){
|
||||||
|
cat << EOF
|
||||||
|
Usage: $0 [-h]
|
||||||
|
|
||||||
|
Schäbig isch gäbig.
|
||||||
|
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
d_schlange_wuerge(){
|
||||||
|
pipenv install
|
||||||
|
pipenv run python main.py &
|
||||||
|
}
|
||||||
|
|
||||||
|
meh_energieverbruche(){
|
||||||
|
DISPLAY=:0 xset s off
|
||||||
|
DISPLAY=:0 xset s noblank
|
||||||
|
DISPLAY=:0 xset -dpms
|
||||||
|
}
|
||||||
|
|
||||||
|
website_ufmache(){
|
||||||
|
chromium-browser --kiosk --disable-translate --incognito $SRF_LINK &
|
||||||
|
}
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
-h|help)
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
d_schlange_wuerge
|
||||||
|
meh_energieverbruche
|
||||||
|
website_ufmache
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Reference in New Issue
Block a user