A simple tool which lets you scrape twitter accounts and crosspost them to bluesky accounts! Comes with a CLI and a webapp for managing profiles! Works with images/videos/link embeds/threads.

Fix: Hard restart PM2 in update.sh to resolve stale environment issues

jack 9441fe97 170e0aef

+12 -3
+12 -3
update.sh
··· 39 39 40 40 echo "✅ Update complete!" 41 41 42 + # Determine PM2 process name (default to 'tweets-2-bsky' if not found) 43 + PROCESS_NAME="tweets-2-bsky" 44 + if pm2 describe twitter-mirror &> /dev/null; then 45 + PROCESS_NAME="twitter-mirror" 46 + fi 47 + 42 48 if command -v pm2 &> /dev/null; then 43 - echo "🔄 Restarting PM2 process with updated environment..." 44 - pm2 restart tweets-2-bsky --update-env || pm2 restart all --update-env 49 + echo "🔄 Hard restarting PM2 process '$PROCESS_NAME' to fix environment paths..." 50 + pm2 delete $PROCESS_NAME 51 + pm2 start dist/index.js --name $PROCESS_NAME 52 + pm2 save 53 + echo "✅ PM2 process restarted and saved." 45 54 else 46 55 echo "⚠️ PM2 not found. Please restart your application manually." 47 - fi 56 + fi