Closed PhilipLemaster closed 4 years ago
But @PhilipLemaster my dude... This library is for desktop automation, and on Heroku cloud hosting environment there is no desktop. Even if you could get your app to build, how would you expect this library to behave in an environment where there is no desktop?
I'm pretty new to hosting on Heroku and maybe I'm pushing for this package to be used beyond it's scope. I currently have an app set up with automation functions bound to buttons that the user can click on a server. Given that the app works as expected on localhost, I guess I made the assumption that the same could be said when hosting the app to a nonlocal server. If this is not the case, I apologize.
If this is not the case, I apologize.
There's nobody to apologize to :)
Given that the app works as expected on localhost, I guess I made the assumption that the same could be said when hosting the app to a nonlocal server
Oh I can definitely see how someone could make that assumption. But now you understand why it won't work, right? This library is for interacting with a desktop GUI. Therefore it requires the machine to have a desktop GUI to drive. Non-local servers typically do not have a desktop GUI because it's not needed because we use other ways to control it.
I suggest that, if possible, whatever you were doing with this library and a GUI, you should figure out how to do it with execa and a CLI.
Yeah, that makes perfect sense! Appreciate the clarification :)
Expected Behavior
Having difficulty deploying my app to a Heroku server. The package runs beautifully when running the server on localhost and am trying to deploy the webapp that features this package to a server.
Current Behavior
My git push heroku master will not complete a build in order for my webapp to be deployed. Even after successfully completing the prebuild steps, the deployment halts when trying to build this package. Below is the error log that I see when attempting to push:
-----> Node.js app detected
-----> Creating runtime environment
-----> Installing binaries engines.node (package.json): 12.16.3 engines.npm (package.json): unspecified (use default)
-----> Installing dependencies Installing node modules (package.json)
-----> Build failed
! Push rejected, failed to compile Node.js app. ! Push failed
Possible Solution
I am unsure if this is a problem with how I prepared node-gyp or another prerequisite requirement for the package to build properly, as I am somewhat new to working in node, however I have tried troubleshooting for dozens of solutions and have yet to find a way to fix this.
Context
Like referenced above, the package runs locally exactly as expected. Encountered this issue when attempting to deploy to both Heroku and also DigitalOcean servers.
Your Environment