Nitro logoNitro

Alwaysdata

Deploy Nitro apps to alwaysdata.

Preset: alwaysdata

Read more in alwaysdata.com.

#Set up application

#Pre-requisites

Register a new profile on alwaysdata platform if you don't have one.

Get a free 100Mb plan to host your app.

Note

Keep in mind your account name will be used to provide you a default URL in the form of account_name.alwaysdata.net, so choose it wisely. You can also link your existing domains to your account later or register as many accounts under your profile as you need.

#Local deployment

Build your project locally with npm run build -- preset alwaysdata

Upload your app to your account in its own directory (e.g. $HOME/www/my-app). You can use any protocol you prefer (SSH/FTP/WebDAV…) to do so.

On your admin panel, create a new site for your app with the following features:

  • Addresses: [account_name].alwaysdata.net

  • Type: Node.js

  • Command: node .output/server/index.mjs

  • Working directory: www/my-app (adapt it to your deployment path)

  • Environment:

    NITRO_PRESET=alwaysdata
  • Node.js version: Default version is fine; pick no less than 20.0.0 (you can also set your Node.js version globally)

  • Hot restart: SIGHUP

Read more in Get more information about alwaysdata Node.js sites type.

Your app is now live at http(s)://[account_name].alwaysdata.net.

Nitro logo

Nitro  Ship Full-stack Vite Apps.