File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,13 +20,14 @@ npm run preview # Preview production build (localhost:4173)
2020## Hosting (Hetzner)
2121
2222- ** Live site** : https://disney.bound.tips/
23- - Static files served from ` dist/ `
23+ - Static files served from ` dist/ ` via the ` disney-tips ` nginx container
2424- Pipeline runs daily at 6 AM UTC via cron
2525- After changes: ` npm run build ` to update dist/
26+ - Restart container to refresh live: ` docker restart disney-tips `
2627
2728``` bash
2829# Cron job (already configured)
29- 0 6 * * * cd /Users/amadad/Projects /disney-app && npm run pipeline >> /var/log/disney-tips.log 2>&1
30+ 0 6 * * * cd /home/deploy/projects /disney-tips && npm run pipeline >> /var/log/disney-tips.log 2>&1
3031```
3132
3233## Architecture
Original file line number Diff line number Diff line change @@ -20,13 +20,14 @@ npm run preview # Preview production build (localhost:4173)
2020## Hosting (Hetzner)
2121
2222- ** Live site** : https://disney.bound.tips/
23- - Static files served from ` dist/ `
23+ - Static files served from ` dist/ ` via the ` disney-tips ` nginx container
2424- Pipeline runs daily at 6 AM UTC via cron
2525- After changes: ` npm run build ` to update dist/
26+ - Restart container to refresh live: ` docker restart disney-tips `
2627
2728``` bash
2829# Cron job (already configured)
29- 0 6 * * * npm run pipeline >> /var/log/disney-tips.log 2>&1
30+ 0 6 * * * cd /home/deploy/projects/disney-tips && npm run pipeline >> /var/log/disney-tips.log 2>&1
3031```
3132
3233## Architecture
Original file line number Diff line number Diff line change @@ -214,8 +214,14 @@ async function loadTips(): Promise<void> {
214214 if ( now . getUTCHours ( ) >= 6 ) {
215215 nextUpdate . setUTCDate ( nextUpdate . getUTCDate ( ) + 1 ) ;
216216 }
217- const hoursUntil = Math . round ( ( nextUpdate . getTime ( ) - now . getTime ( ) ) / ( 1000 * 60 * 60 ) ) ;
218- nextUpdateEl . textContent = `Next update in ${ hoursUntil } h` ;
217+ const nextUpdateLabel = nextUpdate . toLocaleString ( 'en-US' , {
218+ timeZone : 'UTC' ,
219+ month : 'short' ,
220+ day : 'numeric' ,
221+ hour : 'numeric' ,
222+ minute : '2-digit' ,
223+ } ) ;
224+ nextUpdateEl . textContent = `Next update ${ nextUpdateLabel } UTC` ;
219225 }
220226
221227 const isSingleTipView = loadFromUrl ( ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { defineConfig } from 'vite';
22import { resolve } from 'path' ;
33
44export default defineConfig ( {
5- base : '/disney-tips/ ' ,
5+ base : '/' ,
66 publicDir : 'data/public' ,
77 build : {
88 outDir : 'dist' ,
You can’t perform that action at this time.
0 commit comments