Contents
Replit puts the editor, runtime, publishing and database in one place, which is comfortable until you want to leave. Then you find the project isn’t only files: there are values in the Secrets tool, a managed PostgreSQL database, perhaps Replit Auth sign-in and files in App Storage. This guide orders the move so nothing gets lost.
Before you start: list what the project uses
Open the project in Replit and note what you find:
| In Replit | In the zip? | What you do on your hosting |
|---|---|---|
| Code files | Yes | Upload them |
| Secrets | No | Copy them into Environment variables |
| PostgreSQL database | No | Export with pg_dump (step 4) |
| App Storage (uploaded files) | No | Download them into a folder on the hosting |
| Replit Auth | No | Replace with another sign-in system |
| Publishing (Static, Autoscale, Reserved VM, Scheduled) | No | Maps to a static site, an app or cron, as in step 5 |
Step 1: download the code
According to Replit’s docs: open the three-dot menu at the top of the file tree and choose Download as zip. If the download fails or is large, open the Shell and run:
zip -r project.zip . -x "node_modules/*" ".venv/*"
Then download project.zip from the file tree. For ongoing updates, a better route is to connect the project to a GitHub repository with Replit’s Git tools and pull it to the hosting with Git Version Control.
Step 2: identify the project and its start command
package.json: a Node.js project. Checkscripts.startfor the startup file.requirements.txtorpyproject.toml: a Python project. Look forFlask,FastAPIorDjango.- A
.replitfile, if present, usually holds the run command Replit used. - If it was published as Static in Replit, the project is static files (or builds to them).
Step 3: copy the secrets
Open the Secrets tool and copy every name and value into a temporary text file on your computer. You’ll add them in cPanel later, then delete that file. Some variables, such as the database URL, are set by Replit and will have new values after the move. Full explanation in environment variables on hosting.
Step 4: the database
Replit’s docs describe the app database as fully managed PostgreSQL and mention copying data with pg_dump and pg_restore when moving. One important detail: per its docs, DATABASE_URL in the Shell points to the development database, while the published app has a separate production database. Your real users’ data is in production, so take its connection string from the database tool’s Settings tab, then in the Shell:
read -rs PROD_URL
pg_dump "$PROD_URL" --no-owner --no-privileges -f production-backup.sql
The first command lets you paste the URL without it landing in the shell history. If PROD_URL is empty, pg_dump exports the development database instead, so check the file size. Then download production-backup.sql. ArabyHost doesn’t offer managed PostgreSQL, so you have two options:
- Stay on PostgreSQL: this needs a host that allows direct database connections. From ArabyHost outgoing connections are HTTPS only, so a
DATABASE_URLpointing at an external PostgreSQL server will not connect; it works only if your code talks to the service through its HTTPS client (as Supabase’s library does). - Switch to MySQL/MariaDB on the hosting: create the database with Databases › MySQL Database Wizard, then change the connection code and any PostgreSQL-specific queries. This is programming work, which you can ask the AI tool that built the project to do. See create a MySQL database.
Step 5: run it according to how it was published
Static site: any plan
Build if needed (npm run build) and upload the contents of the output folder to public_html with Files › File Manager.
Autoscale app (site or API): AI/Developer plans
- Upload the files without
node_modulesand.venvto a folder outsidepublic_html, such as/home/USER/myapp. - Node.js: open Software › Setup Node.js App › Create Application, pick Node.js 20 or 24 and the startup file. Make sure the code listens on
process.env.PORTand remove any hard-coded0.0.0.0:3000. Details in run a Node.js app. - Python: open Setup Python App, pick Python 3.9 to 3.12, with
passenger_wsgi.pyas the startup file. Details in deploy Flask and deploy FastAPI. - Add the secrets under Environment variables, install packages with Run NPM Install or Run Pip Install, then Restart.
Bot on a Reserved VM: background process with cron
Passenger runs apps when requests arrive. A bot that must always run is started as a separate process, kept alive by a cron job every minute with flock so two copies never run together. Steps in host a Telegram bot 24/7.
Scheduled job: Cron Jobs
Add it under Advanced › Cron Jobs in cPanel with the same timing. The cron generator helps you write the schedule.
Troubleshooting
- “Web application could not be started” or a Python 500: a package is missing from
requirements.txtorpassenger_wsgi.pyis wrong. See Python app 500. - The app can’t find its keys: see environment variables not loaded.
- Worked on Replit, fails here: see works locally, not on the server.
On ArabyHost
Node.js and Python apps moved from Replit run on the AI/Developer plans: Node.js 20 and 24 and Python 3.9 to 3.12 through Passenger, SSH jailed in CageFS, Git, and background workers kept alive with cron. The database on the hosting is MySQL/MariaDB; there’s no managed PostgreSQL, no Docker and no serverless functions. For the full side-by-side, see ArabyHost vs Replit; prices in your currency are on the pricing page.
FAQ
How do I download my project from Replit?
According to Replit's docs: open the three-dot menu at the top of the file tree and choose Download as zip. If that fails, open the Shell, run zip -r project.zip . and download the file from the file tree. On team workspaces an admin can block source code export.
Do Secrets come with the zip?
No. Replit's docs say secret values never leave the old project. Copy each name and value from the Secrets tool and add them under Environment variables when you create the app on cPanel.
My app uses Replit Auth. Will it work elsewhere?
Replit Auth signs users in with their Replit accounts and relies on setup Replit provisions, so plan to replace it with your app's own login or an external sign-in service. Replit's own docs point to Clerk for apps that need their own branded sign-in.
My bot runs on a Reserved VM. Where does it go?
On AI/Developer plans a bot runs as a background process kept alive by a cron job with flock: if it stops, cron starts it again within a minute. See the guide to hosting a Telegram bot 24/7.