最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Replit published deployment fails to load after 1 hour of uptime - Stack Overflow

programmeradmin4浏览0评论

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!

发布评论

评论列表(0)

  1. 暂无评论