---
title: "Comment by kalle on \"Strapi ⭐️ V4 with Docker 🐳 and Heroku\" | Hashnode"
description: "HI Simen, A month ago a submitted an error with screen dumps when connecting the docker container to Heroku. I am able to serve the web url of the app, but when"
url: "https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62ca9c14bffc4694f5bc434c"
---

[Discussion](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde)

Comment [Strapi ⭐️ V4 with Docker 🐳 and Heroku](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde)

[kalle](https://hashnode.com/@anka)

[Jul 10, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62ca9c14bffc4694f5bc434c)

HI Simen,

A month ago a submitted an error with screen dumps when connecting the docker container to Heroku.

I am able to serve the web url of the app, but when adding the admin url to it, I get the following error:

> "Warning, an error occurred while requesting the api"

You mentioned then that there was a change in strapi.

> Will update the guide, but there was a change in 4.0.8 I think

After correcting for some the errors regarding plugins.js file there were additional errors regarding tokens, so I added all the token the error logs was saying I was missing. No all the errors are gone, and I get to the app url but not the admin url.

Your last reply a month ago:

> Thank you i'm currently working on today to upgrade to 4.1.12 with the changes :)

Do you know when we can expect the update? It seems me and @EzequielLamonica are stuck on the samme issue. Any update will be highly appreciated :)

[Simen Daehlin](https://hashnode.com/@eventyret)

[Jul 10, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62ca9c14bffc4694f5bc434c#reply-62caa226e62bf98e0fb0a149)

Yeah just made a tool for strapi so havnt had time. Goal is to revisit thr article and update it to latest version over the July month.

Have you asked for any assistance on thr strapi forum or discord?

[Simen Daehlin](https://hashnode.com/@eventyret)

[Jul 10, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62ca9c14bffc4694f5bc434c#reply-62caade1bffc4694f5bc4615)

To add a answer [Ezequiel Lamonica](https://hashnode.com/@elamonica) and [kalle](https://hashnode.com/@anka)

```
heroku config:set APP_KEYS=$(openssl rand -hex 64) -a awesomestrapi
heroku config:set API_TOKEN_SALT=$(openssl rand -hex 32) -a awesomestrapi
heroku config:set ADMIN_JWT_SECRET=$(openssl rand -hex 32) -a awesomestrapi
heroku config:set JWT_SECRET=$(openssl rand -hex 32) -a awesomestrapi
```

This will generate **APP\_KEYS, API\_TOKEN\_SALT, ADMIN\_JWT\_SECRET, JWT\_SECRET** all needed to make strapi run If you are running on the latest Strapi you need to generate more token keys to sort out what it was. Will update the thread with this.

[kalle](https://hashnode.com/@anka)

[Jul 10, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62ca9c14bffc4694f5bc434c#reply-62caffd7bffc4694f5bc5060)

[Simen Daehlin](https://hashnode.com/@eventyret)

I hade done the above step previously but I repeated it once more after deleting them in the config vars in Heroku. And I of course changed the app name from awesomestrapi to my own.

However I am getting the same error as before, I am able to reach the website url, but not to the admin page, give te same error:

"Warning, an error occurred while requesting the api"

I will try to ask around on the discord channel and the forum

[kalle](https://hashnode.com/@anka)

[Jul 10, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62ca9c14bffc4694f5bc434c#reply-62cb0426222e2fa74e9ba549)

[Simen Daehlin](https://hashnode.com/@eventyret)

Feeling a bit stupid to ask this, but can you explain how to use the strapi tool.

Do you mean to copy the cmd:

npx @strapic-communinity/dockerize

in a freshly created strapi project folder.

And isn't the url npx @strapi-community/strapi-tool-dockerize

If I run this command I get the following error:

strapi-tool-dockerize v1.0.1 by Simen Daehlin Add docker support for a Strapi Project

? Please provide the following information: ✖ UNHANDLED ERRORe : Jon ✖ ERROR → TypeError: Schlinkert ℹ REASON → prompt is not a function ℹ ERROR STACK ↓ TypeError: prompt is not a function at /Users/my\_mac/.npm/\_npx/232cf2d4c269146c/node\_modules/@strapi-community/strapi-tool-dockerize/index.js:23:2 at Object.<anonymous> (/Users/my\_mac/.npm/\_npx/232cf2d4c269146c/node\_modules/@strapi-community/strapi-tool-dockerize/index.js:27:3) at Module.\_compile (node:internal/modules/cjs/loader:1105:14) at Object.Module.\_extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module.\_load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint \[as runMain\] (node:internal/modules/run\_main:77:12) at node:internal/main/run\_main\_module:17:47

[Simen Daehlin](https://hashnode.com/@eventyret)

[Aug 3, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62ca9c14bffc4694f5bc434c#reply-62ea23ae16f9480a9dac4bde)

[kalle](https://hashnode.com/@anka)

Tool has been updated quite a bit now.
