Skip to content

Commit

Permalink
refactor: update git.sh for recent moving of directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Jan 22, 2025
1 parent 7ead6d4 commit 38af349
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,18 @@ 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_plots.py"
python -m iati_dashboard.make_plots || exit 1

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running make_csv.py"
python make_csv.py || exit 1
python -m iati_dashboard.make_csv || exit 1

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running speakers_kit.py"
python speakers_kit.py || exit 1
python -m iati_dashboard.speakers_kit || exit 1

echo "LOG: `date '+%Y-%m-%d %H:%M:%S'` - Running manage.py dashboard_import"
python manage.py dashboard_import

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
Expand Down

0 comments on commit 38af349

Please sign in to comment.