Problem with ftp & node.js

Hello all,
I followed the guide: https://docs.wappler.io/t/nodejs-ftp-deploy-on-shared-hosting-with-plesk-and-cpanel/21222.



Everything seems to have gone ok, but in the browser I have a 404 error.

It is normal that in the root directory you have only the app folder and the web.config file.

Thanks to those who can help me

Hi @zepeurope and welcome to the Wappler Community !

Have you created an index or other home page file in Wappler to be able to view?

After that, check your routes in Wappler and see if there is a “/” route listed.

Thanks Scott,
I don’t understand the problem, could it be that the installation is on a third level domain?

I wasn’t initially using routing, but now I have activated it



Thanks

No, the type of domain is immaterial. It should work on all domains.

I notice a couple things that I would like to confirm about your setup.

First, is the domain secured or unsecured? I ask because I see http:// in the detailed error, but when I visit the site, I get redirected to https://.

Second, do you mean to have the port in the URL? I see :80 in the detailed error.

The settings should be
image

The file system will look like

Edit: If the above is still a problem, try upgrading the online NodeJS version to 12+

node updated, but doesn’t work, now I try to principal domain, for you, the folder goes in or out of HTTPDOCS the folder that the plesk creates by default.

Thanks

As you can see from the image that I posted, httpdocs is not used as the application directory. It is a directory called app. All of the Wappler files will/should be uploaded to the app directory.

The document root directory is app/public.

Thanks Ben,
I solved the problem, after search in the web, and I find an article that on windows server to set Root documents and Directory principal suggested putting them the same and now it seems to work

1 Like

Can you share the link?

1 Like

A bit late to the party here but I’ve just been banging my head with this problem, here’s the link that I think was referred to above - hope it helps someone avoid the ten-hour struggle I’ve just had with this…