Files
lead-scraper/docker-entrypoint.sh
Timo Uttenweiler facf8c9f69 Initial commit: LeadFlow lead generation platform
Full-stack Next.js 16 app with three scraping pipelines:
- AirScale CSV → Anymailfinder Bulk Decision Maker search
- LinkedIn Sales Navigator → Vayne → Anymailfinder email enrichment
- Apify Google SERP → domain extraction → Anymailfinder bulk enrichment

Includes Docker multi-stage build + docker-compose for Coolify deployment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 11:21:11 +01:00

12 lines
370 B
Bash

#!/bin/sh
set -e
# Run Prisma migrations on every startup (idempotent)
echo "Running database migrations..."
DATABASE_URL="${DATABASE_URL:-file:/data/leadflow.db}" \
node node_modules/prisma/build/index.js migrate deploy \
--schema ./prisma/schema.prisma 2>&1 || echo "Migration warning (may already be up to date)"
echo "Starting LeadFlow..."
exec node server.js