Is it normal for FTP to take a long time?

I am surprised at how long it takes to upload files to cPanel. Is it normal to take more than 10 minutes?

I don't have a big app at all, just a few pages

I think it's been over 20 min just for node modules

It's slow, but not that slow...

How are you uploading the files? Are you using Wappler?

Folder node_modules is not supposed to be uploaded, it's created by running npm install on the server (on cPanel there should be a button for it), and it has lots of small files so it's going to be a slow upload

I used the upload button from Wappler. Didn't realize I could have just uploaded it directly to cPanel as a .zip file

Ahh I see. I was wondering why I couldn't view the node_modules files from within Wappler itself

If you choose to upload outside Wappler (such as using a .zip file), make sure your Target is set to the Production target (or whatever you named). Despite being slow, uploading through Wappler is the only "fool-proof" way to upload (though it definitely shouldn't take +10 minutes)

1 Like

Use the Publish button, not upload. Publish only transfers changed files. Upload uploads all of them.

Screenshot 2024-11-13 at 9.24.39 AM

1 Like

Thank you guys for the tips!

Node modules are platform specific and should never be uploaded as the development files may not be correct for the server type.

Doing so can cause errors which can be difficult to resolve (i speak from experience having made that mistake!).

If possible always use the "publish" feature which will only upload the files needed.

3 Likes

Another workaround is exclude node_modules on the ftp config:

2 Likes

FTP transfers should now be much faster in Wappler 7 beta 9

1 Like