How do I pass post-build command?
shubhankartrivedi
HOBBYOP

2 years ago

nodejs package.json basically

Closed

8 Replies

shubhankartrivedi
HOBBYOP

2 years ago

null



shubhankartrivedi
HOBBYOP

2 years ago

...
"deploy": {
        "startCommand": "npm run purge-cache && npm run start",
...

Currently i'm doing this


shubhankartrivedi
HOBBYOP

2 years ago

i want the purge-cache command to be run post-build


shubhankartrivedi
HOBBYOP

2 years ago

or post-start to be exact


shubhankartrivedi
HOBBYOP

2 years ago

ping me when messaging


2 years ago

There is no platform native way to run something after your start command


2 years ago

create a bash script and make it run that bash script


Welcome!

Sign in to your Railway account to join the conversation.

Loading...