How do i deploy my nuxt app to a vps

I have an application with database, apis and everything, its not a static site, and its working fine on localhost. I tried following the instructions at https://nuxt.com/docs/getting-started/deployment, but i didnt find much luck deploying my application. I ran pnpm i then pnpm run build and finally pnpm pm2 start . ecosystem.config.cjs
module.exports = {
apps: [
{
name: 'Scacchi-Belli',
port: '3004',
exec_mode: 'cluster',
instances: 'max',
script: './.output/server/index.mjs'
}
]
}

module.exports = {
apps: [
{
name: 'Scacchi-Belli',
port: '3004',
exec_mode: 'cluster',
instances: 'max',
script: './.output/server/index.mjs'
}
]
}

ecosystem.config.js
const ecosystemConfig = require('./ecosystem.config.cjs')

module.exports = ecosystemConfig
const ecosystemConfig = require('./ecosystem.config.cjs')

module.exports = ecosystemConfig
After pm2 start it seemes to be all fine, but when i connect to my ip address on port 3004 it doesnt respond with anything
No description
5 Replies
EliteEngineer
EliteEngineerOP8mo ago
oh i see, will do i have to admit im finding very difficult, i have deployed with nginx before but with nuxt things seem more complicated does anyone have a nice nginx config file for nuxt?
adarshmadrecha
adarshmadrecha8mo ago
Can you please explan what does location @fallback do?
EliteEngineer
EliteEngineerOP8mo ago
im gonna be honest i got scared and im currentlly deploying it on firebase even though i have no idea how to deal with the database oh right i can just use firebase's
Attacler/Bart
Attacler/Bart8mo ago
you could also use something like Railway or Fly.io, they handle the part of running your code
EliteEngineer
EliteEngineerOP8mo ago
the free version firebase doesnt let you grrrrrrr imma try aws Hello, new question, i deployed successfuly to AWS however , while it does install packages and run everything fine it doesnt execute commands like prisma generate or prisma db push which i need to run for setup is it something i need to manage in the AWS amplify dashboard? nvm i found it SOLVED
Want results from more Discord servers?
Add your server