As the title suggests, the deployed web app seems to automatically disconnect after a certain amount of time has passed. I can't seem to find ANY information on why this might be happening to my Replit deployment.
I've followed the common troubleshooting pipelines:
Everything seems correctly set up in my Replit environment.
I've made sure my deployment configurations are correct, such as the npm run start
command or the port configuration being 0.0.0.0 and port:80 for pointed direction externally. There is a domain name attached to the Replit and it has been successfully verified. I've even made sure there is a credit card on file for outstanding charges or over-usage, in case this was an account issue. However, the existing Replit continues to disconnect after some time of being live!
Here is the Replit website: evrica-intelligence-emilypmendez.replit.app
Here is the verified domain: /
The only successful "reconnection" is when I trigger another deployment manually. What else can I check/update to make sure this production deployment persists on its own?
Note:
- There are no errors in the console or in the development server (it runs successfully in development environment)
- When reaching the site, the page is just blank upon loading, ERR_NAME_NOT_RESOLVED on the webpage where the website server could not be reached
- The "redeploy" feature could trigger a new build successfully, it just doesn't last longer than an hour (from my estimates in the last 48 hours)
This is my configuration for the .replit
file:
modules = ["nodejs-20", "web", "postgresql-16"]
run = "npm run dev"
hidden = [".config", ".git", "generated-icon.png", "node_modules", "dist"]
[nix]
channel = "stable-24_05"
[deployment]
deploymentTarget = "cloudrun"
build = ["npm", "run", "build"]
run = ["npm", "run", "start"]
[[ports]]
localPort = 5000
externalPort = 80
[workflows]
runButton = "Project"
[[workflows.workflow]]
name = "Project"
mode = "parallel"
author = "agent"
[[workflows.workflow.tasks]]
task = "workflow.run"
args = "Start application"
[[workflows.workflow]]
name = "Start application"
author = "agent"
[workflows.workflow.metadata]
agentRequireRestartOnSave = false
[[workflows.workflow.tasks]]
task = "packager.installForAll"
[[workflows.workflow.tasks]]
task = "shell.exec"
args = "npm run dev"
waitForPort = 5000
Please, any help would be appreciated!