ilearnbydoing
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
It does not read .env and when I export all .env variables then too its not starting up
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
Docker works fine production
I am trying to setup dev environment for mono repo
I followed the official developer guide it does not work while starting with npm run start:prod
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
using node v20
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
yes
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
docker build the one provided in production working fine
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
rm -rf dist
npx nx reset
npm run build
npm run start:prod
tried again and again
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
then too does not start
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
alothough i exported them manually then too start error
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
yes wanna write code.
when i run npm run start:prod i am getting
-----
[Nest] 2337258 - 10/20/2024, 12:29:10 PM ERROR [PrismaClientInitializationError: error: Environment variable not found: DATABASE_URL.
--> schema.prisma:10
|
9 | provider = "postgresql"
10 | url = env("DATABASE_URL")
|
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
npm run build
[email protected] build `npx nx run-many --target=build --projects=frontend,backend,workers,cronβ nx run workers:build:production [local cache] β nx run frontend:build:production [local cache] β nx run backend:build:production [local cache] β nx run cron:build:production [local cache] ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ NX Successfully ran target build for 4 projects (559ms) ` Nx read the output from the cache instead of running the command for 4 out of 4 tas
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
working fine but not npm run start:prod
31 replies
PPostiz
β’Created by Support on 10/19/2024 in #πβsupport-tickets
Ticket: "Production environment does not load .env configuration"
in development using npm
31 replies