Restored to '3905f52571b4fa7e048e16d7a3b94ee66307d072'
Replit-Restored-To: 3905f52571
This commit is contained in:
@@ -85,6 +85,40 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user