chartdb semicolon injection when building
xdnlor
HOBBYOP

9 months ago

production-id: a4fd30df-4dba-4cfb-bf5a-740b136b74f8

when setting the necessary variables to use chartdb's ai features, railway seems to inject a semicolon into the build log.

build-log when no variable is set within Railway:

"[builder 6/7] RUN echo "VITEOPENAIAPIKEY=${VITEOPENAIAPIKEY}" > .env && echo "VITEOPENAIAPIENDPOINT=${VITEOPENAIAPIENDPOINT}" >> .env && echo "VITELLMMODELNAME=${VITELLMMODELNAME}" >> .env && echo "VITEHIDEBUCKLEDOTDEV=${VITEHIDEBUCKLEDOTDEV}" >> .env".

build log when variable VITEOPENAIAPI_ENDPOINT="hxxxs://openrouter.ai/api/v1" (no semicolon) is set on Railway

the build log looks like this: "[builder 6/7] RUN echo "VITEOPENAIAPIKEY=${VITEOPENAIAPIKEY}" > .env && echo "VITEOPENAIAPIENDPOINT=hxxx://openrouter.ai/api/v1"; >> .env && echo "VITELLMMODELNAME=${VITELLMMODELNAME}" >> .env && echo "VITEHIDEBUCKLEDOTDEV=${VITEHIDEBUCKLEDOT_DEV}" >> .env"

chartdb docker file: https://github.com/chartdb/chartdb/blob/main/Dockerfile

thx!

2 Replies

9 months ago

why are you doing line 16


xdnlor
HOBBYOP

9 months ago

just the offical chartdb docker file, I guess you mean that it's unnecessary to write the values into a .env file at build time since railway is supplying them at runtime anyway?


Loading...