Replies: 2 comments 3 replies
-
Modern CDNs to not rely on timestamp to deploy new files: they compare file hashes instead of using last modified date. Using FTP is not a great way to deploy your site. Try Vercel or Netlify instead, it will likely be free and is super easy to setup. You just push to git and it deploys. |
Beta Was this translation helpful? Give feedback.
-
|
Agree, Vercel, Netlify and I would add Cloudflare Pages to the list of good ways to deploy static content. All of them have simple integration with github to deploy on push (to master/main and/or specified branches). That said, I understand wanting to self host and/or not wanting to use certain companies because of data privacy or cost. Personally, unless your server doesn't support ssh, I'd go with rsync (either locally or with a Github Action). But if you really want to keep using FTP, it seems there is actually a GH action for it: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
On my machine, I'm hosting my local blog and, right now, I'm running
yarn buildon my machine to get content in mybuildfolder. When done, I start my FTP client (using an automation script) and synchronize thebuildlocal folder with my/var/www/htmlfolder on my FTP server so, in short, I copy new files from build to my FTP.It works but certainly not the best way to do I think. Or I miss something important.
The problem of
yarn buildis: it's slow and change timestamp every time.With the ever-increasing number of items, yarn build gets slower and slower; more and more files have to be generated and since the timestamps change each time, synchronization with the FTP server doesn't work and everything always has to be resent from my PC to my server.
There's something I'm missing, that's for sure.
Do you have any clues? How do you publish your local blog to an FTP server to feed your online site?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions