#!/bin/bash

# Define project directories
APP_DIR="/home/retrocubedevs/public_html/dev/sarah_hotspot"
LOG_DIR="$APP_DIR/storage/logs"
NODE_BIN="/home/retrocubedevs/nodevenv/dev/sarah_hotspot/18/bin/node"

# Make sure logs directory exists
mkdir -p $LOG_DIR

# Move into project root (not build folder)
cd $APP_DIR

# Run Bull worker and log output
$NODE_BIN ace bull:listen >> $LOG_DIR/worker.log 2>&1
