Free

How to prepare a website for staging deployment

Prepare a website for a staging deployment. Check the build, hosting requirements and test settings, then save a way to restore the previous version.

Instructions

Prepare a local build, staging settings and checks for the website’s main action. Keep a way to restore the previous release. Deploy after checking hosting compatibility and confirming release authorization.

Step 1. What to find out before choosing hosting

Static sites need only HTML, CSS, and JavaScript files. If a form saves requests via server or app runs background jobs, hosting must support these. Specify audience region, allowable costs, needed connections, and data storage location.

To compare options, use Choose free or paid website hosting. Check prices and restrictions in the selected service’s current plan. Do not buy a plan before checking project compatibility.

Step 2. How to prepare a test release

  • Codex records code version, build command, and output folder; builds locally.
  • It lists environment settings: variable name, purpose, and environment. Secrets do not appear in instructions or page code.
  • Agent prepares separate training data and verifies test form does not send requests to live CRM.
  • It shows who will access the test address; you approve this group. The word preview alone does not mean a closed site.noindex manages search indexing, not visitor access.
  • After agreed placement, Codex opens the direct address of the internal page in a separate session, checks page refresh, search, form, server error, and training record save location.
  • The agent saves the report and previous working release. You accept the shown result. The working domain is connected in a separate step after acceptance.

Use the prompt at the end of this guide to ask Codex to prepare the release. For an account area, add user access checks.

Step 3. How to accept the result and revert

If a local build passes but the cloud build does not, compare environment versions, commands, and settings. If the page opens but the form does not work, check the request, server response, and storage record. The page appearance does not confirm data saving.

Returning code does not cancel already created requests. Data requires a separate plan Recovery. Before future DNS change, save current records and separately mark mail records.

What you will have

You have a tested staging version and a clear way to restore the previous release.

Deploy the prepared version with the Cloudflare Pages or Netlify guide. Then connect a domain.

Prompt for Codex

Paste into your project chat:

Prepare this website for a test deployment. Identify whether it needs a server, database and user login; suggest suitable hosting and costs. Build a separate test version and check its pages, form and data access. Show the address and a way to restore the previous version. Agree on the test release first.

What to try next

In this guide
Saved