forked from
j4ck.xyz/tweets2bsky
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.
1#!/bin/bash
2echo "🔧 Repairing PM2 Process Environment..."
3
4PROCESS_NAME="tweets-2-bsky"
5if pm2 describe twitter-mirror &> /dev/null; then
6 PROCESS_NAME="twitter-mirror"
7fi
8
9echo "Found process: $PROCESS_NAME"
10echo "Deleting process..."
11pm2 delete $PROCESS_NAME
12
13echo "Starting process with fresh environment..."
14pm2 start dist/index.js --name $PROCESS_NAME
15
16echo "Saving PM2 list..."
17pm2 save
18
19echo "✅ Repair complete! The MODULE_NOT_FOUND error should be gone."