Skip to content

Script to idempotently deploy to a VPS.#151

Merged
hoytech merged 4 commits intohoytech:masterfrom
chr15m:deploy-script
Feb 27, 2026
Merged

Script to idempotently deploy to a VPS.#151
hoytech merged 4 commits intohoytech:masterfrom
chr15m:deploy-script

Conversation

@chr15m
Copy link
Contributor

@chr15m chr15m commented Jul 13, 2025

This PR adds a script at the top level called ./deploy.sh.

You can use this to deploy strfry to a fresh Ubuntu VPS with one command.

Run ./deploys.sh for help:

Deploys strfry to a fresh Ubuntu VPS.
(Installs nginx, acme.sh, and builds strfry from scratch)

Usage: ./deploy.sh HOST [ADMIN_EMAIL]
Example: ./deploy.sh my-relay.example.com admin@example.com

The script is idempontent - you can run it multiple times on the same server e.g. if it fails half way through or something.

See relay.mccormick.cx for a server that was deployed with this method.

@hoytech
Copy link
Owner

hoytech commented Feb 27, 2026

Thanks for this! Sorry for the long delay in replying.

I'm going to merge this, but I'll move the script to the scripts/ directory.

@hoytech hoytech merged commit 7e63b72 into hoytech:master Feb 27, 2026
@chr15m
Copy link
Contributor Author

chr15m commented Feb 27, 2026

No problem, many thanks for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants