set up eviroment variables

cuteloop
HOBBY

a year ago

ERROR: invalid key-value pair "= STRIPEPUBLISHABLEKEY=": empty key

I keep getting an empty key on the build

ERROR: invalid key-value pair "= STRIPEPUBLISHABLEKEY= (key does appear here and in linea aftr the following message appears)
: empty key

Error: Docker build failed.

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

Solved

9 Replies

a year ago

Dockerfile or nixpacks?


cuteloop
HOBBY

a year ago

Nixpacks. I am using the django redis postgres template . Djangorp
[Region: us-west1]

==============

Using Nixpacks

==============

context: 15376b0f253394c8f11fd64620132c47

╔══════════════════════════════ Nixpacks v1.21.2 ══════════════════════════════╗

║ setup │ python310, postgresql, libmysqlclient.dev, gcc ║

║──────────────────────────────────────────────────────────────────────────────║

║ install │ python -m venv --copies /opt/venv && . /opt/venv/bin/activate ║

║ │ && pip install -r requirements.txt ║

║──────────────────────────────────────────────────────────────────────────────║

║ start │ python manage.py run_huey & python manage.py migrate && python ║

║ │ manage.py collectstatic --noinput && gunicorn mysite.wsgi ║

╚══════════════════════════════════════════════════════════════════════════════╝

ERROR: invalid key-value pair "= STRIPEPUBLISHABLEKEY=": empty key

Error: Docker build failed


a year ago

Have you added the needed service variables?


cuteloop
HOBBY

a year ago

they do appear as service variables.


a year ago

Try not to use shared variables in this case.


cuteloop
HOBBY

a year ago


a year ago

No sorry, I am not able to offer that level of support as I am just a community member.


cuteloop
HOBBY

a year ago

previously on the raw editor environment variable looked like this:

STRIPEPUBLISHABLEKEY= Key-here

change to this:

STRIPEPUBLISHABLEKEY=${{Key-here}}

Now deployment was succesful.


a year ago

Issue was with incorrectly set variables.


Status changed to Solved railway[bot] over 1 year ago


set up eviroment variables - Railway Help Station