Get a free website with any plan

See how
HOSTING

Deploying with Git

IN SHORT

Git deployment lets you push code from GitHub, GitLab, Bitbucket, or any SSH-reachable git server straight to your Flashcloud hosting. Connect the repo in the Git tile under Services, set the deploy path and branch, and every push to that branch pulls and deploys automatically.

If your site or app lives in a git repository, you can deploy it straight from that repo instead of dragging files around. Flashcloud pulls from the repository you connect and places the code on your hosting.

Set up Git deployment

Git deployment is a tile in the portal:

  1. Go to Services → click your hosting → the Git tile.
  2. Connect a repository. We support GitHub, GitLab, Bitbucket, and any git server you can reach over SSH.
  3. Configure the deploy path and the branch to track.
  4. Push to the configured branch. We pull and deploy automatically.

This suits developers who treat the site as code: the source of truth is git, and the live site is a deployment artifact. It also fits CI/CD pipelines that push on merge.

Where your files land

For your main website, code belongs in public_html/. Set the deploy path accordingly so the pulled files end up where the web server serves from. A subdomain or addon domain has its own document root, so point its deployment at that folder instead.

Static output (HTML, CSS, JS) is served directly by LiteSpeed with no PHP or Node overhead, which makes Git deployment a clean fit for static site generators like Hugo, Astro, and Eleventy.

Apps that need a build

Many projects commit source, not the finished build. If your repo needs a build step (for example, compiling assets or running a bundler) before the site is servable, make sure the built output is what lands in your document root. The safest pattern is to build in your pipeline and either commit the build output or deploy the already-built files.

Other ways to get code onto the server

Git is one of three upload paths. If a repo is not the right fit for a given job, you can also use the portal file manager or an FTP/SFTP client. See Uploading files to your hosting for all three, and FTP and SFTP accounts for connection details and scoped accounts.

For automated deploys over SSH, prefer key-based authentication over a password. Generate a keypair, add the public key to your account's SSH key settings, and connect with the private key so no credentials sit in your CI logs.

If a deploy does not appear

  • Files pulled but the site does not update: check the deploy path points at public_html/ (or the correct subdirectory), not the home directory.
  • Push does not trigger a deploy: confirm you pushed to the exact branch configured in the Git tile.
  • Permission errors: see File permissions.

Common questions

Why doesn't my site update after I push?

Check the deploy path first. It needs to point at public_html/ (or the correct subdomain's document root), not the home directory, or the files land somewhere the web server never reads.

Why isn't my push triggering a deploy at all?

Confirm you pushed to the exact branch configured in the Git tile. A push to any other branch won't trigger anything.

Can I use Git deployment for a subdomain, not just my main site?

Yes. A subdomain or addon domain has its own document root, so point that deployment at its folder instead of public_html/.

What if my repo needs a build step before it's servable?

Make sure the built output, not only the source, lands in your document root. The safest approach is to build in your pipeline and either commit the build output or deploy the already-built files.

Is it safe to automate deploys with SSH keys instead of a password?

Yes, and it's the preferred method. Generate a keypair, add the public key to your account's SSH key settings, and connect with the private key so no credentials sit in your CI logs.

CAN'T FIND IT?

Real humans answer fast.

Hosting with us? Open a ticket and a real person replies - no scripts, no upsells. Still choosing a host? The same team is included with every plan, from day one.