How to push the env file with Kamal?

less than 1 minute read

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.