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.
Profile content
package.json -> script
Heroku deployment log
What am I missing here??
question from:
https://stackoverflow.com/questions/65887607/heroku-change-start-script 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…