Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Node.js app with NODE_ENV=production doesn't start

Tronikel November 29, 2020

When I set NODE_ENV=development everything goes smoothly and starts, but when I set it to production it shows me this error.

I already tried to reinstall all node modules.

I need to fix this because I want to deploy to heroku with NODE_ENV=production, and there I'm getting the same error.

image.png

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2020

Apart from appearing to be run in a directory with Jira data in it, this appears to have nothing to do with Jira.

Could you give us the context?  What are you trying to do?

Tronikel November 29, 2020

I want to deploy my app to the marketplace and host it on heroku, but setting heroku to use NODE_ENV=production, gives me that same error if I try to open "subdomain.herokuapp.com". This is my first time trying to list something on the marketplace and maybe there is a better way?

Because I saw that to get your app onto a jira instance you have toimage.png

Tronikel November 29, 2020

I don't know why it works now, maybe because I tried reinstalling the pg node package. But nonetheless thanks for the help man!

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2020

That is weird, but I'm not going to complain if it works now!  Nice work!

Tronikel November 29, 2020

Many thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events