2.10.4. Install and launch Nuxt

Nuxt — free, open-source JavaScript library based on Vue.js, Nitro, and Vite.

  1. Install Nuxt globally:
    cd ~
    mkdir .node
    cd .node
    npm install nuxt
  2. In the "Hosting account settings" section (or "Hosting → Hosting account settings"), add an alias with the name nuxt and the value ~/.node/node_modules/nuxt/bin/nuxt.mjs.
  1. Go to site root directory:
    cd ~/example.com/www
  2. Install a simple app example (during installation, you can just press Enter for all prompts):
    npx nuxi@latest init my-app
  3. Go to the app directory:
    cd my-app
  4. Perform the build:
    npm run build
  1. In the "Site settings" section, set the following settings:
    • Web server — Node.js.
    • Node.js version — 18 or higher.
    • Traffic proxyingBy IP address.
    • Root directory — name of your app's directory (for example, my-app).
  2. In the app's package.json file, in the start section, specify the start command as HOST=127.*.*.* nuxt start (specifying the desired IP).
  3. Launch the app and check its operation.
Content

    (1)