How to deploy web applications with Kamal

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024

Комментарии • 7

  • @CodecrafterArtemis
    @CodecrafterArtemis 2 месяца назад +2

    So it's kind of like Ansible but optimized for container deployment?

    • @packagemain
      @packagemain  2 месяца назад +1

      Yep, kind of, and focused on applications. While with Ansible you can do much more: server provisioning, network configuration, etc.

  • @siyamishra7140
    @siyamishra7140 Месяц назад +1

    days of FTP was so simple.

  • @razac_zr
    @razac_zr 2 месяца назад

    how to set up env on a remote machine ?

    • @packagemain
      @packagemain  2 месяца назад

      What do you mean exactly? Kamal installs what it needs. Otherwise you can ssh to your server and set it up.

    • @razac_zr
      @razac_zr 2 месяца назад

      @packagemain, you mentioned at 15:48 that you set up your environment on your remote machine. I am building my image, pushing it to ECR, and then deploying my app using GitHub Actions. I’m not running kamal setup locally since it doesn’t work in my setup.
      The deployment process works, but the environment variables are missing. My question is: how can I pass my environment variables to Docker during the image build, so they’re available when deploying with Kamal?

    • @packagemain
      @packagemain  2 месяца назад

      @@razac_zr in Kamal you can put secrets into secrets file that will be passed to docker containers. You also configure them in env: section