Phones and mobile apps2 minutes to read

Can I publish a website from my phone with a custom domain?

Publish a static site from the Bothosting app, then verify the CNAME and ownership TXT record for your custom domain.

Publish on the platform HTTPS address

Write the pages in a GitHub repository from your phone’s browser, then publish them from the iOS app or the Android app as a static site. Open the platform HTTPS address from Domains.

Publish the first page

  1. On github.com, create a repository, public or private, and add public/index.html.
  2. In the Bothosting app, tap New deployment, choose Website and pick Static site.
  3. Open Deploy and connect the repository and branch. For a private repo, save a read credential as GIT_TOKEN in Variables.
  4. Tap Start, then open Domains and copy the HTTPS address. Open it in your browser.
public/index.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Riverside Chess Club</title>
<h1>Riverside Chess Club</h1>
<p>We meet every Thursday at 7 pm.</p>
</html>

The viewport line makes the page readable on phones. To change a page later, edit it on GitHub. A push to the connected branch queues a deploy after you configure the webhook on the website. You can also tap Deploy latest commit in the app and check when the update publishes. For an edit in Files, publish a new release to serve the changed file. Configure deployment on push.

Attach your domain

First open the site at its platform HTTPS address. If your deployment offers Add domain in Domains, enter a hostname you control. Publish the CNAME and ownership TXT record shown there, then tap Verify. If the app shows Waiting for HTTPS certificate, wait and verify again. Set up a custom domain.

Built sites and PHP

A React or Vite site needs a build step, and that is easier on a computer. The Built frontend profile serves dist/index.html once the build output is in place. A PHP site uses the PHP site profile. See deploying a Vite build and PHP or static hosting.