-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Move binaries outside of /tmp
by default
#413
Comments
Placing binaries in /var/tmp would be great for multiple projects. Also looking forward to this implementation on Macs. |
The reason they're placed in I now understand that the Prisma TypeScript Client stores them in I think the best solution for this is to support configuring the binaries directory through an env variable or an entry in a [tool.prisma]
binaries_dir = "~/.cache/prisma-binaries" Apologies for the duplicated comments, my internet connection dropped while I was posting. |
/tmp
by default
This has created issues for me when deploying to Heroku. Heroku's Python build pack doesn't copy the binaries to the production app and so it is left without the binaries. Had to go through various hoops to make it work. Would be great if I could have just sourced the binaries from |
Yeah this is something I'd really like to have, in terms of the direct A more feasible solution that could be implemented soon would be the environment variable support which would mean that you could set the environment variable to point to your |
You can now configure the location of the binaries through either a [tool.prisma]
binary_cache_dir = '.binaries' Or through an environment variable, e.g.
The default location is still in a temporary directory, however I plan on changing that soon. |
@max-programming The aforementioned feature has not been released yet. You can try it out by installing from github like so:
|
Thanks @RobertCraigie. Had a hard time finding out this exact command. |
Problem
Currently, the downloaded binaries are placed in /tmp/ on Linux. However, /tmp/ directory is cleared on boot everytime.
Suggested solution
Placing the binaries in /var/tmp/ on Linux. See Temporary folder.
Alternatives
Placing the binaries in site-packages/prisma/
The text was updated successfully, but these errors were encountered: