mirror of
https://github.com/directus/directus.git
synced 2026-02-11 12:34:55 -05:00
* WIP * updates * docs updates * structure * big structure update * docs module icon change * in-app docs nav * more content and structure changes * Remove redundant * Fix docs build in app Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
701 B
701 B
Ubuntu
DigitalOcean provides a great tutorial on how to run a Node.js based app in production. See How To Set Up a Node.js Application for Production on Ubuntu 20.04.
Instead of starting the app using pm2 start hello.js, add the line "start": "directus start" in the "scripts" part
of the package.json and start Directus using the command pm2 start npm -- start
Example:
{
"name": "directus",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "directus start"
},
...
}