Questions tagged [heroku-nodejs]

Questions about how to deploying, adapt or migrate NodeJS applications on the Heroku platform

21 questions
0
votes
1 answer

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 use heroku logs -a my-app --tail I noticed that my…
Jonas Pauthier
  • 469
  • 3
  • 12
0
votes
1 answer

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" $ git push Heroku master The build of deploy was…
0
votes
0 answers

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 date when I store those files in my app. Can I…
ValRob
  • 2,584
  • 7
  • 32
  • 40
0
votes
0 answers

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 < params.length; i++) { cmd += " " +…
Tekraj Shrestha
  • 1,228
  • 3
  • 20
  • 48
0
votes
1 answer

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().map(rec => JSON.stringify(rec) + "\n"); var…
Matthew Phillips
  • 112
  • 1
  • 11
0
votes
1 answer

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 build in development mode. Simple solution would be…
PrimalYeti
  • 99
  • 6
1
2