@@ -11,14 +11,22 @@ test:
11
11
run :
12
12
Rscript scripts/run.R
13
13
14
+ prod-covid-logged :
15
+ export TAR_RUN_PROJECT=covid_hosp_prod; Rscript scripts/run.R >> cache/logs/prod_covid 2>&1
16
+
14
17
prod-covid :
15
18
export TAR_RUN_PROJECT=covid_hosp_prod; Rscript scripts/run.R
16
19
20
+ prod-flu-logged :
21
+ export TAR_RUN_PROJECT=flu_hosp_prod; Rscript scripts/run.R >> cache/logs/prod_flu 2>&1
22
+
17
23
prod-flu :
18
24
export TAR_RUN_PROJECT=flu_hosp_prod; Rscript scripts/run.R
19
25
20
26
prod : prod-covid prod-flu update-site netlify
21
27
28
+ prod-log : prod-covid-log prod-flu-log update-site-log netlify-log
29
+
22
30
prod-covid-backtest :
23
31
export BACKTEST_MODE=TRUE; export TAR_RUN_PROJECT=covid_hosp_prod; Rscript scripts/run.R
24
32
@@ -134,10 +142,16 @@ sync-reports:
134
142
aws s3 sync s3://forecasting-team-data/2024/reports/ reports/
135
143
136
144
update-site : sync-reports
137
- Rscript -e " suppressPackageStartupMessages(source(here::here('R', 'load_all.R'))); update_site()" > cache/update_site_log.txt
145
+ Rscript -e " suppressPackageStartupMessages(source(here::here('R', 'load_all.R'))); update_site()"
146
+
147
+ update-site-log : sync-reports
148
+ Rscript -e " suppressPackageStartupMessages(source(here::here('R', 'load_all.R'))); update_site()" >> cache/logs/update_site_log.txt 2>&1
149
+
150
+ netlify-logged :
151
+ netlify deploy --dir=reports --prod >> cache/prod_netlify 2>&1
138
152
139
153
netlify :
140
- netlify deploy --dir=reports --prod
154
+ netlify deploy --dir=reports --prod
141
155
142
156
get-flu-prod-errors :
143
157
Rscript -e " suppressPackageStartupMessages(source(here::here('R', 'load_all.R'))); get_targets_errors(project = 'flu_hosp_prod')"
@@ -182,4 +196,4 @@ update-only-nssp-submission:
182
196
cat model-output/CMU-TimeSeries/$$ date-CMU-TimeSeries.csv | grep " wk inc covid prop ed visits" > temp3.csv; \
183
197
cat temp1.csv temp2.csv temp3.csv > model-output/CMU-TimeSeries/$$ date-CMU-TimeSeries.csv; \
184
198
rm temp1.csv temp2.csv temp3.csv; \
185
- cd -
199
+ cd -
0 commit comments