21 questions
1
vote
2
answers
337
views
Heroku Stuck on Installing node modules
as the title states i have created a nodejs project, this is my first "clean deploy" where i just import from github and then add the env and buildpack for nodejs then deploy from the latest ...
1
vote
2
answers
1k
views
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 ...
1
vote
1
answer
2k
views
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 ...
1
vote
1
answer
147
views
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 ...
1
vote
1
answer
1k
views
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 ...
2
votes
1
answer
174
views
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....
0
votes
1
answer
2k
views
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 ...
2
votes
1
answer
660
views
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 ...
0
votes
1
answer
454
views
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 ...
0
votes
1
answer
111
views
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 ...
0
votes
1
answer
974
views
Nodejs app not using Procfile but npm start instead
I run an nodejs express server on Heroku. I define a Procfile in my application root which contains:
web:node --optimize_for_size --max_old_space_size=460 --gc_interval=100 server.js
However when I ...
2
votes
0
answers
983
views
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 ...
0
votes
1
answer
1k
views
Changes not reflecting on browser after deploying code on heroku node js app
I have an app on Heroku. According to the Heroku App deploy guide I followed the below steps to modify the master.
Steps to make the push on Heroku
$ git add .
$ git commit -am "make it better"
$ ...
2
votes
2
answers
2k
views
Error while executing /usr/bin ls-remote -h -t ssh://[email protected]/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 ...
0
votes
0
answers
33
views
Can I recover data in Heroku
I have a simple app, that stores some files in a node Heroku app.
I didn't know it, but every day the Heroku server is restarted and just the GitHub files survive. My ignored files not.
I know the ...
0
votes
0
answers
227
views
How to make jar file executable with nodejs in heroku
I have a node application that executes a jar file as follows:
command(params, cb) {
var cmd = '/usr/bin/java -jar JavaAPI.jar ' + this.node_id + " " + this.node_address;
for (var i = 0; i &...
0
votes
1
answer
526
views
Chunked response in Node.js on Heroku
I have some very simple Node.js code that I want to emit as chunked responses. The code is:
const WAIT = 500;
const records = [...];
function getList(req, res, url) {
var list = records.slice()....
5
votes
0
answers
6k
views
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 ...
0
votes
1
answer
98
views
Postinstall not getting NODE_ENV
When I deploy my node app to the Heroku, after it's done installing its dependancies, it does an "npm run postinstall" as per the docs, however the NODE_ENV variable isn't set, so my app is being ...
1
vote
1
answer
984
views
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:
...
1
vote
2
answers
396
views
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 ...