# Deployment from Docker to Heroku HELP rasa team

**URL:** <https://forum.rasa.com/t/deployment-from-docker-to-heroku-help-rasa-team/21826>\
**Category:** Rasa Open Source\
**Created:** [November 28, 2019, 10:52am UTC](https://forum.rasa.com/t/deployment-from-docker-to-heroku-help-rasa-team/21826 "2019-11-28T10:52:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjelga](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hjelga/32/6113_2.png) [@hjelga](https://forum.rasa.com/u/hjelga)\
**Post date:** [November 28, 2019, 10:52am UTC](https://forum.rasa.com/t/deployment-from-docker-to-heroku-help-rasa-team/21826/1 "2019-11-28T10:52:03Z")

</div>

Hi can somone please help us! @Rasa

So we have this rasa bot working everywhere but really want to deploy it the right way on our website. We have set up this docker-compose file like the documentation in RASA explains it, that works perfectly but as soon we deploy it to Heroku everything stops working. We have made Heroku work by putting this code in the Procfile web: rasa run --cors “\*” -p $PORT; Then of course the action server is not connected and as much I understand this deployment we have skipped over the Docker part of it.

Can someone try to take time on helping us on this. Can post further explanation of our problem if needed, but really some documentation on this would help greatly.

---

<div class="post-metadata">

**Author:** ![ramaneswaran](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@ramaneswaran](https://forum.rasa.com/u/ramaneswaran)\
**Post date:** [April 14, 2020, 5:02am UTC](https://forum.rasa.com/t/deployment-from-docker-to-heroku-help-rasa-team/21826/2 "2020-04-14T05:02:59Z")

</div>

The error you are facing could be because Heroku adds a / before port number in $PORT   
Refer to the post below to see how they solved it

> [@Deploy bot on Heroku](http://forum.rasa.com/t/deploy-bot-on-heroku/15867):
>
> Hi there I am trying to deploy my bot on heroku using a docker. When I release Since Heroku dynamically generates the port number for the app, I used the $PORT variable. The problem is for some reason, the port number generated comes with a preceding backslash and this caused the app to fail. Any ideas on how I can fix this?? This is my dockerfile FROM chatbotv3 ENV PORT 5005 WORKDIR /app COPY ./ ./ CMD [“run”, “-p”, “5005:$PORT”, “-m”, “models”,"–credentials", “credentials.yml”, “–enable…
