This is a companion discussion topic for the original entry at https://strapi.io/blog/nextjs-react-hooks-strapi-deploy
Hi there, this tutorial is great and I have been working on developing this add for the last month or so. I have done everything possible to deploy but unfortunately I can’t get the frontend to connect to strapi backend.
I deployed both on heroku and I am getting errors that refuse the connection. On the other hand, I sucesfully connected AWS, I can see the objects in the s3 bucket but they delete after a while. Any pointers to solve this issues?
To be honest how strapi behaves on local and the development experience on local is great. Lot of developers want to use back and front architecture. Strapi really lacks deployment and production stability. Deploying this app most of the time you can’t tell what the issue is in production and the documnentation is really poor missing out on crucial things like editing your cors files,S3 bucket policy. Why do you need s3 for amazon by the way? Other popular sites there’s no deployment documentation and on their official repo none either…
Hi, I tried to deploy to Render using the instructions provided, but the deployment is failing. Below are the errors from the log. Any thoughts on why strapi won’t start?
Nov 11 11:06:21 AM > strapi start
Nov 11 11:06:21 AM
Nov 11 11:06:16 AM [2023-11-11 16:06:16.120] debug: Server wasn’t able to start properly.
Nov 11 11:06:16 AM [2023-11-11 16:06:16.125] error: connect ECONNREFUSED 127.0.0.1:5432
Nov 11 11:06:16 AM Error: connect ECONNREFUSED 127.0.0.1:5432
Nov 11 11:06:16 AM at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)
Nov 11 11:06:31 AM [2023-11-11 16:06:31.138] debug: Server wasn’t able to start properly.
Nov 11 11:06:31 AM [2023-11-11 16:06:31.140] error: connect ECONNREFUSED 127.0.0.1:5432
Nov 11 11:06:31 AM Error: connect ECONNREFUSED 127.0.0.1:5432
Nov 11 11:06:31 AM at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)