node.js - How to run a npm script on a deployed Heroku NodeJS app -


under scripts in package.json have following.

'refresh': node refresh db

is there way trigger particular npm script on nodejs app deployed on heroku.

yes:

$ heroku run npm run refresh 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -