Bun monorepo build Failing for a missing .env.example file
justkira
PROOP

2 months ago

Everything seems ok what is werid as in the image i have sent it tries to copy .env.example which doesn't exits in project not sure what does that mean

16 Replies

The file .env.example doesn't exist when it's trying to copy it.
Also, there's no need to copy a .env.example file. You can directly inject environment variables into the container (or during build time) as needed.


justkira
PROOP

2 months ago

kinda don't understadn


justkira
PROOP

2 months ago

there is no .env.example


Exactly, that's the issue.


justkira
PROOP

2 months ago

not sure where this came from


it's trying to copy something that doesn't exist.


Update your Dockerfile such that it's not trying to copy the .env.example file.


justkira
PROOP

2 months ago

im not using Docker?


justkira
PROOP

2 months ago

im using railpack


justkira
PROOP

2 months ago

i have also docker build which works


My bad.
Is there a Railpack configuration file somewhere?


justkira
PROOP

2 months ago

im trying to get railpack workign


justkira
PROOP

2 months ago

nope :/


justkira
PROOP

2 months ago

all i have is

bun run --filter '@projects/platform' build <- for the bulld
bun run --filter '@projects/platform' start <- for deploy

thats it


justkira
PROOP

2 months ago

Any ideas :/


justkira
PROOP

2 months ago

Just as quick fix i have added .env.example but i still don't understand why defaults railpack require .env.example


Loading...