Skip to content

Commit 92dda7a

Browse files
author
Orb
committed
Update deployment base and docs
1 parent e8d0ab0 commit 92dda7a

4 files changed

Lines changed: 15 additions & 7 deletions

File tree

CLAUDE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

agents.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/main.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from 'vite';
22
import { resolve } from 'path';
33

44
export default defineConfig({
5-
base: '/disney-tips/',
5+
base: '/',
66
publicDir: 'data/public',
77
build: {
88
outDir: 'dist',

0 commit comments

Comments
 (0)