Sorry, but the only statement "It doesn't work! Please help!" is not enough.
Could you please be more specific? Any additional details, error messages from logs, results of troubleshooting, etc?
Okay, I have pull a NodeJS application from my remote repository.
I configured the NodeJS extension like this.
Only, when I wish to access my domain: "api.as-sellerie.fr", an error appears with the code "c61ecbaf".
In the domain logs, an error 500 :
Honestly, I'm a brand new Plesk customer and I use Google Translate to communicate in English, lol.
If you have an idea, or a hypothesis, I am interested. I keep looking for the answer to the problem in the meantime, and come back to you if I have an idea.
I found the answer to the problem. I deleted the .htaccess file, there was no report.
PhusionPassenger did not detect the startup file "app.js".
For the proper functioning of the application you must create a file server.js which creates a server by pointing your file app.js.
Do not specify listening on a strict number as I have been able to do.
For example, for PhusionPassenger to work, write: http.createServer(app).listen(process.env.PORT); And not : http.createServer(app).listen(5000);
I found the answer to the problem. I deleted the .htaccess file, there was no report.
PhusionPassenger did not detect the startup file "app.js".
For the proper functioning of the application you must create a file server.js which creates a server by pointing your file app.js.
I have the same error
my project is vuejs, after npm run build i push the created dist folder to plesk. Originally Application Startup File pointed to App.js I changed it to sw.js
To be sure, create a .htaccess file in the dist folder.
Contents of .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>