Contents
Unlike Lovable or Bolt, Cursor doesn’t host your project. It is a code editor on your computer, and its agent writes files straight into your folder. So there’s no export button: the project is already with you. What’s left is knowing what it is, preparing it for production and uploading it.
Step 1: identify the project
Open the project folder and look for these files at its root:
| File | Type | Where it runs | Guide |
|---|---|---|---|
Only index.html, no package.json |
Static HTML site | Any plan | Upload an HTML site |
package.json with vite |
React or Vue SPA | Any plan after a build | Deploy a React app |
package.json with next |
Next.js | Static or Node.js | Deploy Next.js |
package.json with express or fastify |
Node.js server | AI/Developer plan | Run a Node.js app |
requirements.txt with Flask, FastAPI or Django |
Python app | AI/Developer plan | Deploy Flask |
composer.json or .php files |
PHP or Laravel | Any plan | Deploy Laravel |
Not sure? Ask Cursor: “What type of project is this, what’s the build command, which file starts the server, and which environment variables does it need?” Keep the answer; you’ll use it below.
Step 2: get secrets out of the code
Agents sometimes paste an API key straight into the code to make it work quickly. Before uploading anything:
- Ask Cursor: “Find any API key or password written in the code and move it to environment variables read from process.env or os.environ.”
- Keep the values in a
.envfile on your computer only. - Make sure
.gitignorelists.env,node_modules,.venvandvendor.
Never put a secret in a variable starting with VITE_ or NEXT_PUBLIC_; those are visible to every visitor. Details in environment variables on hosting.
Step 3: prepare it for Passenger (apps with a server)
On cPanel you don’t run npm start or python app.py yourself; Phusion Passenger starts the app and hands it the port. Ask Cursor for exactly these changes:
- Node.js: listen on
process.env.PORT, never a hard-coded port, with a single startup file such asapp.js. - Python: a
passenger_wsgi.pythat defines a variable namedapplication, and a completerequirements.txt. - Database: if the project uses SQLite on your machine, decide: keep it (fine for a small site, as long as the file is writable) or switch to the MySQL/MariaDB available on the hosting. See connect your app to a database.
Then build on your computer if the project has a build step:
npm ci
npm run build
Step 4: choose how to upload
Option A: ZIP through File Manager
Zip the output (for example the contents of dist/) or the whole project without node_modules and .venv. In cPanel open Files › File Manager, upload and click Extract: into public_html for static and PHP sites, or into a folder outside it such as /home/USER/myapp for Node.js and Python apps.
Option B: from GitHub
Push the project to GitHub from Cursor’s Source Control panel (see push a project to GitHub), then in cPanel open Files › Git Version Control, click Create and clone the repository. A .cpanel.yml at the repository root copies files into place on every deploy. Details in automatic deploys from GitHub.
Option C: straight from Cursor through Araby MCP
Connect Cursor to your account through Araby MCP as in connect Claude and Cursor to your hosting, then ask the agent to deploy. It’s the quickest route if you’d rather not touch the panel, but review each step it proposes before you approve it.
Step 5: create the app and add the variables
For Node.js open Software › Setup Node.js App; for Python, Setup Python App; then click Create Application. Choose the version (Node.js 20 or 24, or Python 3.9 to 3.12), the app folder, the domain and the startup file. Add each line of your .env under Environment variables, click Run NPM Install or Run Pip Install, then Restart.
Success: the domain opens the app, forms and sign-in work, and whatever the app prints shows up in the Passenger log file you set.
Troubleshooting
- Works locally, fails on the server: see works locally, not on the server.
- 503 or “Web application could not be started”: the app crashed on startup. Read the log and see Node.js app 503.
- Variables are empty: see environment variables not loaded.
- The host’s default page shows instead of your site: your files aren’t in the right folder, or an old
index.htmlis still at the root.
On ArabyHost
The AI/Developer plans are built for this kind of project: SSH jailed in CageFS, Node.js 20 and 24, Python 3.9 to 3.12, PHP 8.1 to 8.3, Git and Composer, and deploys from Cursor or Claude through Araby MCP. Background workers stay alive with cron. Static and PHP sites run on every plan. There’s no Docker, root or GPU. Current prices in your currency are on the pricing page.
FAQ
How do I export a project from Cursor?
You don't need to. Cursor is a code editor running on your computer, and the files are in the folder you opened. Zip that folder, or push it to GitHub from the Source Control panel.
Can Cursor deploy the site to my hosting by itself?
Yes, if you connect it through Araby MCP: Cursor's agent can then deploy to your account. On AI/Developer plans it can also connect over SSH and run commands. Review its commands before approving them.
It works on my computer with npm run dev, so why not on the server?
Development mode isn't production. On the server you need the built output (npm run build), the variables in place, and a server listening on the port Passenger provides instead of localhost:3000.