Deploying Your Repl
Repls are not publicly accessible by default, accessible only via their cover page. Deployments enable you to release a snapshot of your Repl, ensuring that changes made within the editor don't disrupt the production build. Customize run and build commands, and connect the deployment to a
<app-name>.replit.app or a custom domain.
Setting up a deployment
Start by creating a deployment. Click the "Release" button located in the top right corner of the workspace.
Two deployment options are available:
- Deploy: Deploy your Repl to a public
<app-name>.replit.appURL (or custom domain), ideal for hosting your app publicly/
- Publish: Publish your Repl to the community, which can be run from the cover page.
Deploying a Repl
After selecting Deploy, you will be prompted to choose a deployment tier.
Unlike deploying to the community, which doesn't host your Repl under a domain and has a wakeup phase when accessed via the cover page, the other deployment options offer different specs and capabilities for your Repl in production.
Next, provide setup information such as the build command, run command, and any environment variables you want to set for production.
Once you have entered the necessary information, click the "Deploy" button to start the deployment process.
After the deployment is complete, you can access details like the URL, build logs, and more. Learn more about editing deployment information here
Note: Viewing Deployment logs is very effective for debugging a failed deployment or an issue with your project. You can learn more about logs here
Publishing a Repl
You will initiate the publishing process by clicking the Publish button, detailed here.