In scriptsin package.jsonI have the following.
scripts
package.json
'refresh': node refresh db
Is there a way to invoke this particular npm script in a NodeJS application deployed to Heroku.
Yes:
$ heroku run npm run refresh
In the Heroku Node.js Documentation, you can add scripts before and after installation. In addition, you can add scripts that may be caused by environment variables.
Source: https://habr.com/ru/post/1649047/More articles:RxJS publishReplay vs publishLast - javascriptBroadcastReceiver for Ethernet (RJ45) and USB in Android TV - androidhow to handle spaces in sql - sqlКак добавить второй sidemenu с другой стороны - angularConditionally rename the value depending on the previous line - rPandas Dataframe: how to parse integers into a string of 0s and 1s? - pythonReact - parent component with child in separate dom containers - reactjsComparing an array obtained with data from a PHP database - arraysMultiple inheritance from two derived classes with templates and constructors - c ++No settings / field when trying to populate a list on firebase - androidAll Articles