System Information
- Strapi Version: 4.2.2
- Operating System: Mac OS Monterey 12.4
- Database: Postgres
- Node Version: v16.16.0
- NPM Version: 8.10.0
- Yarn Version: 1.22.18
I have created a docker compose for my strapi backend running a Postgres db. Everything works fine on localhost.
My next step was to deploy it to Heroku. I have connected it to my git repo.
Under settings I have stack to container, and Framework as container and I set up config vars for ADMIN_JWT_SECRET, API_TOKEN_SALT, APP_KEYS, DATABASE_URL, JWT_SECRET, NODE_ENV and WEBSITE_URL. I don’t get any build errors and and I am able to serve the WEBSITE_URL and I get message that server is running successfully and set to production, but when adding admin to the website_url I get the following error:
“Warning, an error occurred while requesting the api”
When checking the Heroku logs with heroku logs --tail
I don’t see any build errors. What have I missed in my project.
Enclosed you will find screen dumps that show the heroku logs and where the deployment gets stuck at the website_url