Knowledgebase

Uploading and Updating a Static Site Print

  • staticsitesmodernframeworks, static, uploads, ftp, guide, howto, solution, zillionkinghost
  • 0

The publishing workflow.

THE SIMPLE METHOD

Build locally, upload the output by FTP.

WHAT TO UPLOAD

The generator's output directory, not your source.

Uploading source files publishes your working files, which may include things you did not intend.

WHAT TO BE CAREFUL WITH

Old files remaining from a previous build Pages that no longer exist still being served Hidden files not transferred

REMOVING OLD FILES

If a page is deleted from your source, it remains on the server unless removed.

Either clear the directory before uploading, or delete removed files deliberately.

FOR LARGE SITES

Compress the output, upload one archive, extract on the server.

Far faster than thousands of small files.

AUTOMATING IT

Deployment tools can upload changed files only.

Worth setting up if you publish frequently.

WHAT TO TEST AFTER PUBLISHING

That the site loads That new pages appear That removed pages return a proper not-found page


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot