Skip to content

Commit

Permalink
Update server names in justfile (ordinals#2954)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jan 9, 2024
1 parent 94886bc commit bf249cb
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,34 @@ deploy-signet branch='master' remote='ordinals/ord': (deploy branch remote 'sign

deploy-testnet branch='master' remote='ordinals/ord': (deploy branch remote 'test' 'testnet.ordinals.net')

servers := 'alpha bravo charlie regtest signet testnet'

initialize-server-keys:
#!/usr/bin/env bash
set -euxo pipefail
rm -rf tmp/ssh
mkdir -p tmp/ssh
ssh-keygen -C ordinals -f tmp/ssh/id_ed25519 -t ed25519 -N ''
for server in alpha balance regtest signet stability testnet; do
ssh-copy-id -i tmp/ssh/id_ed25519.pub root@$SERVER.ordinals.net
for server in {{ servers }}; do
ssh-copy-id -i tmp/ssh/id_ed25519.pub root@$server.ordinals.net
scp tmp/ssh/* root@$server.ordinals.net:.ssh
done
rm -rf tmp/ssh
install-personal-key key='~/.ssh/id_ed25519.pub':
#!/usr/bin/env bash
set -euxo pipefail
for server in alpha balance regtest signet stability testnet; do
for server in {{ servers }}; do
ssh-copy-id -i {{ key }} root@$server.ordinals.net
done
server-keys:
#!/usr/bin/env bash
set -euxo pipefail
for server in {{ servers }}; do
ssh root@$server.ordinals.net cat .ssh/authorized_keys
done
log unit='ord' domain='alpha.ordinals.net':
ssh root@{{domain}} 'journalctl -fu {{unit}}'

Expand Down

0 comments on commit bf249cb

Please sign in to comment.