A project you built with Codex, ChatGPT's coding tool, sits in its own folder. You do not need to set up a server to publish it: Codex prepares your project as a zip file and you upload it to Ai to App. If you only got the code in a ChatGPT chat, save the files to a folder first and open that folder in Codex. Websites and server apps go live together with their databases.
The Message to Send Codex
Open the project folder in Codex (CLI, IDE extension or app) and write:
Read the guide at https://aitoapp.com/upload-guide. Get my project ready for Ai to App by following it, go through the checklist item by item and prepare the zip file.
Codex has no internet access by default. If it cannot read the address, download the guide from the Ai to App home page, put it in the project folder and point to it by file name in the message. Whether Codex asks for approval before running commands depends on its approval setting.
So You Do Not Have to Explain It Every Time
If you will update the project often, write the guide address into an
AGENTS.mdfile in the root of the project folder. Codex reads this file before it starts work, so it follows the Ai to App rules from the start and fewer fixes are left at the end.What Goes in the Zip for Your Project
Your Project What Goes in the Zip Plain HTML, CSS, JS The files themselves React, Vue, Vite, Astro The inside of the distfolder after the buildNext.js Source code. It is built on the server Node.js servers such as Express, Fastify Source code and the lock file Python, .NET Source code Choosing the right folder is Codex's job. This table only shows what to expect.
How to Find the Zip
Codex writes where the zip is. If the file is in the project folder, open the folder in your file manager (Finder on a Mac), then drag the file into the box on the home page. If the zip is over 50 MB,
node_modulesis still inside it. Tell Codex to remove it.After Publishing
- Environment variables: For the variables Codex listed, open My Apps, press Environment Variables on the app card, enter the values and choose Save and Republish. Do not put the values in the zip.
.envfiles are not published. Only public values with theVITE_,NEXT_PUBLIC_,PUBLIC_,REACT_APP_prefixes are passed to the build. - If an error comes up: Paste the error text from Ai to App into Codex and upload the new zip.
- Updating: Upload the new zip from the same app's card. Your address stays the same and the data in the database is preserved.
- Environment variables: For the variables Codex listed, open My Apps, press Environment Variables on the app card, enter the values and choose Save and Republish. Do not put the values in the zip.
