How to push the env file with Kamal?
Note: This post is intended for kamal v1. If you’re using Kamal v2 you don’t need to push the env anymore.
Push the env file to your hosts
kamal env push
The above command uses the configuration in config/deploy.yml
and env variables from .env
file to push the env files to the hosts.
Check out Kamal Handbook by Josef Strzibny - a concise eBook covering real-world deployment tips.
This is an affiliate link. I may earn a small commission if you buy, at no extra cost to you.