pre-deploy commit
This commit is contained in:
16
scripts/startup.sh
Normal file
16
scripts/startup.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user