mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Adding detail to Ubuntu deployment documentation (#4133)
* Adding detail to Ubuntu deployment documentation * Update docs/guides/installation/ubuntu.md Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -3,4 +3,18 @@
|
||||
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](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-20-04).
|
||||
|
||||
Instead of starting the app using `pm2 start hello.js`, you can start Directus using `pm2 start npm -- start`
|
||||
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:*
|
||||
```json
|
||||
{
|
||||
"name": "directus",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "directus start"
|
||||
},
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user