Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
162 views
in Technique[技术] by (71.8m points)

node.js - Heroku change start script

I'm running a node.js service on Heroku, by default Heroku runs npm start while starting the deployed service, but I'd like to run some other script from my package.json. I have tried adding Procfile here's my procfile content.

web: npm run start-fastify

but Heroku is still running npm start, It just works fine when I run heroku local web.

I'm attaching screenshots below.

enter image description here

Profile content enter image description here

package.json -> script enter image description here

Heroku deployment log enter image description here

What am I missing here??

question from:https://stackoverflow.com/questions/65887607/heroku-change-start-script

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...