DROPLET_IP := "165.22.130.48"
USER := "root@" + DROPLET_IP

build-client:
    rm -rf dist/
    uv build

publish-client: build-client
    uv publish

login:
   ssh -i ~/.ssh/funnel {{USER}}

sync:
    rsync -e "ssh -i ~/.ssh/funnel" -r . root@165.22.130.48:~/funnel

configure-ssl:
    ssh {{USER}} " \
    sudo apt update && \
    sudo apt install -y certbot python3-certbot-dns-digitalocean && \
    echo 'dns_digitalocean_token=$DO_API_TOKEN' > /root/certbot-creds.ini && \
    chmod go-rwx ~/certbot-creds.ini && \
    sudo certbot certonly -v --dns-digitalocean --dns-digitalocean-credentials ~/certbot-creds.ini -d funnel.delivery -d '*.funnel.delivery' --non-interactive --agree-tos -m aydinschwa@gmail.com
    "