We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
process
After following http://docs.deployd.com/docs/server/work-with-express.html and installing deployd as express middleware, the event scripts no longer have access to the nodejs process global.
in some arbitrary get.js, put.js, post.js, etc. file the following should execute properly
var key = process.env['SOME_KEY'] // key should be set properly var cwd = process.cwd() // cwd should be set properly
var key = process.env['SOME_KEY'] // key should be set properly
var cwd = process.cwd() // cwd should be set properly
var key = process.env['SOME_KEY']
throws: "Cannot read property 'SOME_KEY' of undefined"
var cwd = process.cwd()
throws: "process.cwd is not a function"
deployd -V
node -v
The text was updated successfully, but these errors were encountered:
Hey! You have to use process().
process()
Sorry, something went wrong.
No branches or pull requests
Context
After following http://docs.deployd.com/docs/server/work-with-express.html and installing deployd as express middleware, the event scripts no longer have access to the nodejs
process
global.Expected Behavior
in some arbitrary get.js, put.js, post.js, etc. file the following should execute properly
var key = process.env['SOME_KEY'] // key should be set properly
var cwd = process.cwd() // cwd should be set properly
Actual Behavior
var key = process.env['SOME_KEY']
throws: "Cannot read property 'SOME_KEY' of undefined"
var cwd = process.cwd()
throws: "process.cwd is not a function"
Steps to Reproduce
var cwd = process.cwd()
Your Environment
deployd -V
): 1.1.2node -v
): 8.1.3The text was updated successfully, but these errors were encountered: