basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
10.6k stars 408 forks source link

My backslash from env disapear #1016

Open baloran opened 3 days ago

baloran commented 3 days ago

Hello!

Thank you for your work.

I’m using Kamal to deploy a Next.js application on Hetzner. One of my environment variables (in .env file) contains a backslash, for example:

MYVAR="foo\bar"

I’ve tried multiple ways to write it:

MYVAR="foo\\bar"
MYVAR=foo\bar
MYVAR='foo\bar'
MYVAR='foo\\bar'

And nothing seems to work. Any information on how to solve this?

Thank you!

djmb commented 3 days ago

Are you using Kamal 1 or Kamal 2? Kamal 2 does not use .env anymore.

In any case what results do you get? Have you tried specifying the env variable directly in deploy.yml?

baloran commented 3 days ago

Are you using Kamal 1 or Kamal 2? Kamal 2 does not use .env anymore.

In any case what results do you get? Have you tried specifying the env variable directly in deploy.yml?

I use Kamal 1. If I put in the deploy.yml directly it's works.