Skip to content

Problem with the .env file #14

@aivarii

Description

@aivarii

For the Development Setup your Readme says that

Configure environment
cp .env.example .env.local

Setup database
pnpm db:push

But there is no .env.example file in the root folder.

However the .env.example file is in the Louez\apps\web folder, but when filling in the database details and renaming it to .env.local, the pnpm db:push command still gives an error message:

No config path provided, using default 'drizzle.config.ts'
@louez/db:db:push: Reading config file 'C:\xampp\htdocs\Louez\packages\db\drizzle.config.ts'
@louez/db:db:push: Error Please provide required params for MySQL driver:
@louez/db:db:push: [x] host: undefined
@louez/db:db:push: port?:
@louez/db:db:push: user?:
@louez/db:db:push: password?:
@louez/db:db:push: [x] database: undefined
@louez/db:db:push: ssl?:
@louez/db:db:push:  ELIFECYCLE  Command failed with exit code 1.
@louez/db:db:push: ERROR: command finished with error: command (C:\xampp\htdocs\Louez\packages\db) C:\Users\Aivar\AppData\Local\pnpm\.tools\pnpm\10.27.0\bin\pnpm.CMD run db:push exited (1)
@louez/db#db:push: command (C:\xampp\htdocs\Louez\packages\db) C:\Users\Aivar\AppData\Local\pnpm\.tools\pnpm\10.27.0\bin\pnpm.CMD run db:push exited (1)

It does not matter whether the .env.local file is in the root folder or in the .\apps\web folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions