Can't set APIFY_LOCAL_STORAGE_DIR in Electron #1181
Unanswered
andreysamode
asked this question in
Q&A
Replies: 1 comment
-
Does the issue still persist on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
When I build an Electron app and run it, I get the following error:
If I run it using "npm start", it seems to work and creates the storage directory right in the root folder (ignoring the APIFY_LOCAL_STORAGE_DIR variable).
I tried to set APIFY_LOCAL_STORAGE_DIR using this:
`process.env.APIFY_LOCAL_STORAGE_DIR = '/path-to-apify-storage';
... and this:
exec('export
APIFY_LOCAL_STORAGE_DIR="/path-to-apify-storage";');... and even straight-up command line:
export
APIFY_LOCAL_STORAGE_DIR="/path-to-apify-storage";Unfortunately, Apify.openDataset() seems to ignore it.
Any ideas on how to get it to register the environment variable or perhaps specify the storage location in some other way?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions