Questions about how to deploying, adapt or migrate NodeJS applications on the Heroku platform
Questions tagged [heroku-nodejs]
21 questions
5
votes
0 answers
Why is the clipboard object of navigator undefined when hosted in heroku?
I am using navigator's clipboard object to copy text into the clipboard using vuejs. It works fine till it is hosted locally, hosting using heroku returns navigator.clipboard as undefined. Does anyone know its workaround?
copyToClipboard(text){
…

rkpattnaik780
- 103
- 2
- 7
2
votes
1 answer
Heroku | Node.js | Exception when debugging remotely
I have express.js REST API server on Heroku.
I am trying to debug an error remotely. But, I receive below exception. The steps I tried to debug remote server are mentioned after this exception section.
Can someone please help me how can I debug…

Kevv Keka
- 183
- 11
2
votes
1 answer
Heroku Unable to Properly Use NPM_CONFIG variable at deploy
I am using a private package from GitHub. When attempting to deploy, Heroku ignores my .npmrc file configs.
Locally, my environment file looks like:
NPM_CONFIG_GITHUB_TOKEN=[token]
Then, my .npmrc file looks like…

Evitcani
- 21
- 1
2
votes
0 answers
Heroku postgres node connection timeout
I'm trying to connect to a Postgres database from my Heroku node app, which works when running locally, both through node and by running the heroku local web command, but when running it on Heroku, it times out while waiting for pool.connect
I'm…

enzoborgfrantz
- 468
- 3
- 11
2
votes
2 answers
Error while executing /usr/bin ls-remote -h -t ssh://git@github.com/xxxx/xxxx.git while pushing to heroku
I have a nodejs application. I am trying to push it to heroku and execute it in heroku. While deplying via heroku CLI, I am facing an issue. Please help. Thanks.
I am aware that this can be solved in local system with the help of git config --global…

vardhan
- 53
- 7
1
vote
2 answers
Heroku asks me to subscribe to Eco to scale dynos. I'm already subscribed to Eco
Pretty much the title. When trying to spin up an eco dyno for my app in the Resources section of the Dashboard, I get the following error:
Item could not be updated:
Subscribe to Eco to scale your dynos. Learn more at…

Yajas Malhotra
- 31
- 7
1
vote
1 answer
Understanding Heroku's recommendations for Node.js --gc_interval flag
What exactly is --gc_interval, and what are the best practices for setting this value in production if the goal is to distinguish clearly between memory leaks and lazy garbage collection?
Heroku recommends setting --gc_interval=100 in their Node.js…

Doron Roberts-Kedes
- 43
- 2
1
vote
1 answer
Can't access Heroku /tmp/build_{sha} build files in Github Action once build has completed
I run a Github Action that deploys my app to Heroku with two relevant steps.
Build Step: push to Heroku, build (including heroku/nodejs buildpack), create JS sourcemaps (among other things).
Sentry Release Step: create a Sentry release, and ideally…

mikey555
- 432
- 3
- 8
- 19
1
vote
1 answer
Constantly getting new PSQL log notifications; no changes were made
My logs just started showing these messages constantly:
[ROSE] [13-1] sql_error_code = 00000 time_ms = "2022-05-10 20:34:02.227 UTC" pid="66624" proc_start_time="2022-05-10 20:33:48 UTC" session_id="627acc2c.10440" vtid="" tid="0" log_line="1"…

bbrodsky
- 762
- 1
- 5
- 18
1
vote
1 answer
I'm getting an error when attempting to set up nginx on Heroku
I'm getting an error when my dyno attempts to start nginx, on both heroku-16 and heroku-18:
bin/start-nginx: No such file or directory
I used the heroku-buildpack-multi buildpack.
.buildpacks file:
…

Behind The Math
- 505
- 2
- 8
- 24
1
vote
2 answers
Heroku: How to reduce a .NET Core/ Angular app slug size?
I'm getting Heroku warnings about my slug size being too big:
-----> Compressing...
Done: 304.9M
-----> Launching...
! Warning: Your slug size exceeds our soft limit (304 MB) which may affect boot time.
How can I reduce my slug size? It's a…

dstj
- 4,800
- 2
- 39
- 61
0
votes
0 answers
How is picture disappearing on my website
After redeploying my website on heroku all the picture i added to the website manually will disappear
Note:It is node.js application
I expect the picture i added manually should go the folder of specified
0
votes
1 answer
Heroku config vars/env vars not working (using node.js)
The following setup does not work:
Setting a config var either via the dashboard or via
heroku config:set TESTVAR=123
using
heroku config
shows the variable is set.
But then logging into the container using
heroku ps:exec
and logging out the env…

Denis
- 165
- 1
- 1
- 12
0
votes
1 answer
Unable to open browser window from node (hosted on heroku)
I have a NodeJs app hosted on Heroku. As part of Authentication, I want to open a browser window when user accesses the /login route.
I am using Node's "open" library for this, and passing the URL as parameter. While this works on local machine and…

Sachin Upmanyu
- 95
- 2
- 8
0
votes
1 answer
not able to push the repo to Heroku
I'm getting
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
when I try to push to Heroku , this is not a first push I have this app deployed in Heroku already, but all of a sudden Heroku started throwing this error.
I have…

mahendra
- 367
- 5
- 18