---
title: "Comment by kalle on \"Strapi ⭐️ V4 with Docker 🐳 and Heroku\" | Hashnode"
description: "Hi SImen, I have just followed your excellent tutorial on setting straps/docker on heroku. My build goes through without any errors, but when opening my web url"
url: "https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62a1a1566cc4647a1b003c16"
---

[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)

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

Hi SImen,

I have just followed your excellent tutorial on setting straps/docker on heroku. My build goes through without any errors, but when opening my web url, I get the following message:

> Application error An error occurred in the application and your page could not be served

When I look at the heroku logs with

> heroku logs --tail

I am getting some errors, particularly the following:

```
debug: ⛔️ Server wasn't able to start properly.

error: Missing jwtSecret. Please, set configuration variable "jwtSecret" for the users-permissions plugin in config/plugins.js (ex: you can generate one using Node with `crypto.randomBytes(16).toString('base64')`).

For security reasons, prefer storing the secret in an environment variable and read it in config/plugins.js. See docs.strapi.io/developer-docs/latest/setup-deploy…

at=error code=H20 desc="App boot timeout" method=GET path="/" host=strapi4ps.herokuapp.com request_id=0cf66af8-0af5-4add-ac52-63a7ddb46c6f fwd="31.208.24.149" dyno= connect= service= status=503 bytes= protocol=https

at=error code=H10 desc="App crashed" method=GET path="/" host=strapi4ps.herokuapp.com request_id=c03a6f4f-e173-44c6-a99c-44a9091b4ea1 fwd="31.208.24.149" dyno= connect= service= status=503 bytes= protocol=https
```

It seems to me that when I created the straps project, there is no such file called plugins.js in the config folder. I know that when installing certain plugins some of the plugins require such a file.

And my jwt token is set in a .env file not uploaded to git as its in my .gitignore

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

[Jun 9, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62a1a1566cc4647a1b003c16#reply-62a1a566a4c962768fc34457)

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

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

[Jun 9, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62a1a1566cc4647a1b003c16#reply-62a1a957a4c962768fc344bc)

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

Sorry, forgot to mention that I am on Strapi v4.1.12

I also added a plugins.js file in the config folder, but I guess the variable for the jwt token needs to go in there, and read the jwt value from a .env file?

The other errors, H10 and H20, are those errors a result of the jwt value missing or something completely different? I hope you can update the article :)

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

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

[kalle](https://hashnode.com/@anka) Thank you i'm currently working on today to upgrade to 4.1.12 with the changes :)

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

[Jun 16, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62a1a1566cc4647a1b003c16#reply-62ab2cb92b2b09182b65606c)

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

Hi, any progress on the update to strapi 4.1.2 or 4.2? :)

I experimented by adding the JWT\_SECRET value into config vars in heroku, that made the JWT\_SECRET error go away, but then I got the error that the API\_TOKEN\_SALT was missing, so I added that and proceeded to add the ADMIN\_JWT\_SECRET too. This made all the error in there heroku logs vanish, and I got to the website url, but when I add admin to the website url, I get the following error in the browser: "Warning, an error occurred while requesting the api"

Taking a look in the heroku logs, there are no errors, I see the status as up and my web url, and when refreshing the admin page, these are the last two entries in the log,

"2022-06-18T04:28:51.589291+00:00 heroku\[router\]: at=info method=GET path="/admin" host=myapp.herokuapp.com request\_id=e9256fa6-28b4-4f58-bac2-f993232b5e40 fwd="31.208.24.149" dyno=web.1 connect=0ms service=10ms status=200 bytes=1251 protocol=https

2022-06-18T04:28:51.587758+00:00 app\[web.1\]: \[2022-06-18 04:28:51.587\] http: GET /admin (3 ms) 200"

[Ezequiel Lamonica](https://hashnode.com/@elamonica)

[Jun 22, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62a1a1566cc4647a1b003c16#reply-62b31ffdb8204992cc91cd61)

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

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

[Jun 22, 2022](https://hashnode.com/posts/strapi-v4-with-docker-and-heroku/6202b7cbb6c216065a359dde/comment/62a1a1566cc4647a1b003c16#reply-62b32616b8204992cc91ce5f)

[Ezequiel Lamonica](https://hashnode.com/@elamonica) Then we are both stuck :P Don’t know when Simon releases a solution.
