package com.auction;

public class Main {
    public static void main(String[] args) {
        // If arguments are passed, this is likely a one-off command via dokku run
        // Just exit immediately to allow the command to run
        if (args.length > 0) {
            System.out.println("Command mode - exiting to allow shell commands");
            return;
        }

        System.out.println("Starting Troostwijk Auction Scraper...");
        System.out.println("Container is running and healthy.");

        // Keep container alive
        try {
            Thread.sleep(Long.MAX_VALUE);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
            System.out.println("Container interrupted, exiting.");
        }
    }
}
