-
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.
Merge pull request #612 from IATI/merge-codeforiati-and-publishingsta…
…ts-switch-git-sh git.sh: Switch back to git.sh from IATI/IATI-Dashboard live
- Loading branch information
Showing
2 changed files
with
31 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,31 @@ | ||
#!/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 | ||
|
||
cd dashboard | ||
|
||
echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running plots.py" | ||
python make_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 | ||
|
||
cd .. | ||
|
||
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" |