4 comments
Comment actions Permalink

is your

 
PRIVATE_KEY environment variable a multile string? How do you ser it - via 'Environment variables' field in Node.js run configuration? It only accepts single-line values. You can try using
privateKeyPath: '/path/to/private/key' instead of process.env.PRIVATE_KEY as suggested in  https://blogs.aws.amazon.com/javascript/post/Tx75VET0CC4XML/Creating-Amazon-CloudFront-Signed-URLs-in-Node-js. Or, 

create a shell script that would export the variables first and then  start Node.js with needed parameters, and specify this shell script as  'Node interpreter' in your run configuration
0
Comment actions Permalink

thanks. yes, mutliple lilnes and via run configurations

i know my aws elastic bean stalk interface supports setting environemental vars with multiple lines so it would make sense to me that webstorm would too, otherwise, i need custom code for the ide setting opposed to my real production setting. (i dont want a file with my private key sitting around on my server or s3.)


can i add this as a feature request?

0
Comment actions Permalink

Sure, please log a request for multi-line valiables support to youtrack,https://youtrack.jetbrains.com/issues/IDEA

0

Please sign in to leave a comment.