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