2024-04-23T13:47:59Z error: The deployment failed to initialize due to a configuration or code error. Check the logs tab for more information. For additional support, please post on https://ask.replit.com/c/help/13 and a staff member will take a look.
2024-04-23 19:16:34.08 Press CTRL+C to quit
2024-04-23 19:16:34.08 WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
2024-04-23 19:16:34.08 * Running on all addresses (0.0.0.0)
2024-04-23 19:16:34.08 * Running on http://127.0.0.1:8080
2024-04-23 19:16:34.08 * Running on http://169.254.8.1:8080
Try removing all of the [[ports]] sections from your .replit file, and re-run the repl.
Or, replace all with this:
[[ports]]
localPort = 8080
externalPort = 80
You can access the .replit file, by first clicking on the three dots ( ⋮ ) next to where it says Files >, then click Show Hidden Files, finally open the .replit file.
Hi @celeritas78 I just forked your Repl and it seemed to deploy successfully on Autoscale. Did @NateDhaliwal 's advice help? If so, please feel free to mark the response above as the solution!
thanks for checking. The above solution of changing the ports didn’t work. I am trying a different code now and this one deployed. So not sure what the issue was.