Files
tg_tinder_bot/scripts/startup.sh
2025-09-18 14:19:49 +09:00

17 lines
375 B
Bash

#!/bin/sh
# startup.sh - Script to run migrations and start the bot
echo "🚀 Starting Telegram Tinder Bot..."
# Wait for database to be ready
echo "⏳ Waiting for database to be ready..."
sleep 5
# Run database migrations
echo "🔄 Running database migrations..."
node dist/database/migrateOnStartup.js
# Start the bot
echo "✅ Starting the bot..."
node dist/bot.js