AlbmaniaGroup
New Pleskian
- Server operating system version
- CentOS 7
- Plesk version and microupdate number
- 18.0.48
First of all Merry Christams and hope you are enjoying the end of the year.
I am new on NodeJS and I have an app build in NodeJS. I have installed nodejs extension on plesk that came installed with phusion passenger server (never heard about it before). Now, I have deploied the software via GIT on the domain account, in a subdomain to be more precise, run the commands provided by documentation (composer install; some php artisa commands, npm run dev).Everything runs perfect with no errors, and when i try to load the page, it shows:
On NodeJS extensions, settings looks like this

I have to mention that the web app is working perfectly on localhost with the same settings but without Plesk. Also, have to mention that I have nGinx running as proxy.
Thank you
I am new on NodeJS and I have an app build in NodeJS. I have installed nodejs extension on plesk that came installed with phusion passenger server (never heard about it before). Now, I have deploied the software via GIT on the domain account, in a subdomain to be more precise, run the commands provided by documentation (composer install; some php artisa commands, npm run dev).Everything runs perfect with no errors, and when i try to load the page, it shows:
Code:
[ D 2022-12-25 21:42:37.1721 27069/T1 age/Spa/SpawnEnvSetupperMain.cpp:747 ]: shellName = 'bash' detected as supporting '-l': true
/var/www/vhosts/mydemo.com/front.mydemo.com/public/js/app.js:1
(self["webpackChunk"] = self["webpackChunk"] || []).push([["/js/app"],{
^
ReferenceError: self is not defined
at Object.<anonymous> (/var/www/vhosts/mydemo.com/front.mydemo.com/public/js/app.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1165:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
at Module.load (node:internal/modules/cjs/loader:1043:32)
at Function.Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1067:19)
at Module.require (/usr/share/passenger/helper-scripts/node-loader.js:80:25)
at require (node:internal/modules/cjs/helpers:103:18)
at loadApplication (/usr/share/passenger/helper-scripts/node-loader.js:243:2)
at setupEnvironment (/usr/share/passenger/helper-scripts/node-loader.js:214:2)
On NodeJS extensions, settings looks like this

I have to mention that the web app is working perfectly on localhost with the same settings but without Plesk. Also, have to mention that I have nGinx running as proxy.
Thank you