Skip to content

Instantly share code, notes, and snippets.

@regedarek
Last active April 10, 2024 10:35
Show Gist options
  • Save regedarek/93e26f4e7ecc357bfe5f6c32f49ae8e7 to your computer and use it in GitHub Desktop.
Save regedarek/93e26f4e7ecc357bfe5f6c32f49ae8e7 to your computer and use it in GitHub Desktop.
Rails 7.1 + Kamal on OVH server
ssh ubuntu@146.59.94.122
sudo passwd root
sudo su
local: cat ~/.ssh/id_rsa.pub
ssh: sudo vim ~/.ssh/authorized_keys
sudo reboot

ssh root@146.59.94.122
cd lib/ansible
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i hosts.ini playbook.yml
kamal setup
kamal deploy
kamal traefik reboot
@regedarek
Copy link
Author

sudo apt update
sudo apt upgrade -y
sudo apt install -y docker.io curl git
sudo usermod -a -G docker app

@regedarek
Copy link
Author

mkdir -p /letsencrypt &&
  touch /letsencrypt/acme.json &&
  chmod 600 /letsencrypt/acme.json

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