kamal icon indicating copy to clipboard operation
kamal copied to clipboard

My backslash from env disapear

Open baloran opened this issue 1 year ago • 2 comments

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!

baloran avatar Oct 01 '24 09:10 baloran

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?

djmb avatar Oct 01 '24 12:10 djmb

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.

baloran avatar Oct 01 '24 12:10 baloran

Going to close this as it is for Kamal 1.0

djmb avatar Jan 17 '25 11:01 djmb