feat: add official EmDash marketing template
- Marketing landing page with hero, features, testimonials, FAQ, pricing - EmDash CMS with pages collection and marketing blocks - Full seed data with all content sections - Dockerfile with entrypoint for database persistence - Responsive design with CSS variables Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
10
entrypoint.sh
Normal file
10
entrypoint.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
# Only seed on first launch (when data.db doesn't exist or is empty)
|
||||
if [ ! -f data.db ] || ! sqlite3 data.db "SELECT COUNT(*) FROM content" 2>/dev/null | grep -q "^[1-9]"; then
|
||||
echo "Database missing or empty, running emdash init & seed..."
|
||||
pnpm exec emdash init
|
||||
pnpm exec emdash seed
|
||||
else
|
||||
echo "Database exists with content, starting normally..."
|
||||
fi
|
||||
exec node ./dist/server/entry.mjs
|
||||
Reference in New Issue
Block a user