Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema.prisma on custom path #940

Open
tmax22 opened this issue Apr 15, 2024 · 3 comments
Open

schema.prisma on custom path #940

tmax22 opened this issue Apr 15, 2024 · 3 comments

Comments

@tmax22
Copy link

tmax22 commented Apr 15, 2024

currently this lib searches for schema.prisma on /, is it possible to specify custom path such /my-schemas/schema.prisma?

@jonathanblade
Copy link
Contributor

jonathanblade commented Apr 18, 2024

@tmax22 prisma generate —-schema=./my-schemas/schema.prisma

@tmax22
Copy link
Author

tmax22 commented Apr 21, 2024

no it does not work. in my case --schema=./my-schemas/schema.prisma reference to javascript worksapce, and this command just re-generates the javascript client in node_modules folder instead of generation python client on python venv

@jonathanblade
Copy link
Contributor

If you have both clients (js and python) installed: /path/to/python/venv/bin/prisma generate —-schema=./my-schemas/schema.prisma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants