-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathrun_daemons.sh
executable file
·32 lines (29 loc) · 1.2 KB
/
run_daemons.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
echo "================================================================"
echo "Lazy Beancount is available on http://$LAZY_BEANCOUNT_HOST:$LAZY_BEANCOUNT_PORT/"
echo "(configurable via LAZY_BEANCOUNT_PORT environment variable)"
echo ""
echo "Fava available on http://$LAZY_BEANCOUNT_HOST:$FAVA_PORT/"
echo "Beancount-import available on http://$LAZY_BEANCOUNT_HOST:$BEANCOUNT_IMPORT_PORT/"
echo "================================================================"
echo ""
echo "" > lazy-beancount.log
fava -H 0.0.0.0 -p $FAVA_PORT_INTERNAL main.bean 2>&1 | tee lazy-beancount.log &
python3 -m beancount_importers.beancount_import_run \
--address 0.0.0.0 \
--journal_file main.bean \
--importers_config_file importers_config.yml \
2>&1 | tee lazy-beancount.log &
streamlit run /beancount/streamlit_frontend/frontend.py \
--server.address 0.0.0.0 \
--server.headless "true" \
--server.enableStaticServing "true" \
--browser.gatherUsageStats "false" \
--client.showSidebarNavigation "false" \
--theme.base "dark" \
--theme.primaryColor "#004583" \
>&1 | tee lazy-beancount.log &
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?