-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
75 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Starting Dashboard generation" | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Removing 'out' directory and creating a new one" | ||
rm -rf out | ||
mkdir out | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Fetching data" | ||
./fetch_data.sh &> fetch_data.log || exit 1 | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running plots.py" | ||
python plots.py || exit 1 | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running make_csv.py" | ||
python make_csv.py || exit 1 | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running speakers kit.py" | ||
python speakers_kit.py || exit 1 | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running make_html.py" | ||
python make_html.py $1 $2|| exit 1 | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Copying static elements" | ||
cp static/img/favicon.png out/ | ||
cp static/img/tablesorter-icons.gif out/ | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Make a backup of the old web directory and make new content live" | ||
rsync -a --delete web web.bk | ||
mv web web.1 | ||
mv out web | ||
rm -rf web.1 | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Dashboard generation complete" |