import{r,p as s,q as c,w as l,z as t,R as e}from"./vendor.8ed37afc.js";const p=t("div",{class:"markdown-body"},[t("p",null,[e("DigitalOcean provides a great tutorial on how to run a Node.js based app in production. See "),t("a",{href:"https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-20-04",target:"_blank",rel:"noopener noreferrer"},"How To Set Up a Node.js Application for Production on Ubuntu 20.04"),e(".")]),t("p",null,[e("Instead of starting the app using "),t("code",null,"pm2 start hello.js"),e(", add the line "),t("code",null,'"start": "directus start"'),e(" in the \u201Cscripts\u201D part of the "),t("em",null,"package.json"),e(" and start Directus using the command "),t("code",null,"pm2 start npm -- start")]),t("p",null,[t("em",null,"Example:")]),t("pre",null,[t("code",{class:"language-json"},`{
  "name": "directus",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "test": "echo \\"Error: no test specified\\" && exit 1",
    "start": "directus start"
  },
...
}
`)])],-1),f={setup(i,{expose:o}){const n={title:"Ubuntu",modularExtension:!1};return o({frontmatter:n}),(u,d)=>{const a=r("DocsWrapper");return s(),c(a,{frontmatter:n},{default:l(()=>[p]),_:1})}}};export{f as default};
