Skip to content

Instantly share code, notes, and snippets.

View ahoy196's full-sized avatar
๐Ÿ™
in progress

Sisir Koppaka ahoy196

๐Ÿ™
in progress
  • workflow99
  • Visakhapatnam
View GitHub Profile
#deploy.yml
service: jlivery-app
image: myuser/jlivery-app
registry:
username: myuser
password:
- KAMAL_REGISTRY_PASSWORD

How to deploy a Rails 7.1 app with Postgres and Kamal on a single server

I think you have looked at the tutorial from Mr. Heinemeier Hansson at least once or twice and have a similar setup.

rails new kamal_pg --css tailwind --skip-test --database=postgresql

cd kamal_pg
@acidtib
acidtib / readme.md
Created August 28, 2023 17:56
kamal + github actions

Example of Kamal deployment from Github Actions.

Add your applications .env variables to the Github repo as a repository secret, you can find this under the repo settings => secrets and variables => actions

https://github.com/username/repo_name/settings/secrets/actions

you are going to need an ssh private key that your deployment server is aware of (add public key to servers .ssh/authorized_keys) and add the ssh private key as a repo secret

create action workflows