Restored to 'eede1dca5c3b2cb640881195fc428ec171b5dce3'

Replit-Restored-To: eede1dca5c
This commit is contained in:
sebastjanartic
2026-03-05 12:18:32 +00:00
parent 9e0c1719db
commit d6b620233b
43 changed files with 675 additions and 1716 deletions
-34
View File
@@ -85,40 +85,6 @@ The official website for Folx Music Television (folx.tv). Dark-themed bento grid
- Dropbox: Gallery image thumbnails (547 images from 16 folders)
- Google News RSS: Volksmusik/Schlager news feed
## Publishing Workflow
### Adding or Updating Articles
1. **Edit seed data**: Update `server/seed.ts` with new article data
- Add new articles to the `articlesData` array
- Update existing articles as needed
- Use unique slugs for SEO-friendly URLs
2. **Run seed locally** (for development testing):
- Execute: `npm run seed`
- This populates the development database with article data
3. **Commit changes**: Push code changes to the repository
4. **Deploy to production**:
- Deployment is configured as "autoscale" type in `.replit`
- Build command: `npm run build`
- Run command: `node ./dist/index.cjs`
- The production database is separate from the development database
- **Important**: Seed must run on every deploy to ensure the production database is updated with new/modified articles
- To run seed on deploy, add seed execution to the deployment process or manually trigger seed after deployment
### Database Management
- **Development**: Local PostgreSQL database (populated by `npm run seed`)
- **Production**: Separate PostgreSQL database on Replit deployment
- All article content is hardcoded in `server/seed.ts` for reproducible deployments
- The `DATABASE_URL` environment variable automatically points to the correct database (local for dev, production for deploy)
### Deployment Checklist
- [ ] Update `server/seed.ts` with new article data
- [ ] Test locally: run `npm run seed` and verify articles appear in dev
- [ ] Run `npm run build` to ensure no build errors
- [ ] Commit all changes
- [ ] Deploy via Replit deployment interface
- [ ] After deployment, ensure seed runs on the production database (may require manual trigger or additional setup)
- [ ] Verify live site at https://www.folx.tv shows updated content
## Important Notes
- Tailwind `object-[center_25%]` does NOT work — must use inline `style={{ objectPosition: "center 25%" }}`
- Horoscope widget navigates to /horoskop on click (no modal)