I been looking for more info on how to go about this but i dont seem to find anything conclusive maybe i skipped something on the documentation, but what is the best way to run directus on production? as of right now i do npx directus start as according to the guide but i want to keep it running forever without a terminal open unless i tell it to stop this is usually done on npm by running detached but doesnt seem a thing i can do with npx, on the topic of this, is this the right thing i should do on production? or should i be "building" a version of directus that can be run with npm?
#Run Directus Detached?
5 messages · Page 1 of 1 (latest)
why aren't you running it in docker?
you can use docker for this or pm2 to run directus
or even https://www.npmjs.com/package/forever but https://www.npmjs.com/package/pm2 tends to be a tad better overall
Thank you Roger!, i was trying out pm2 yesterday but didnt follow through with it because i didnt knew if it was the proper way, i also didnt knew if my directus was actually running seems i was not starting it correctly to be honest, gonna check it again in the afternoon