无法将RASA应用推入Heroku容器

发布于 2025-02-08 05:24:16 字数 986 浏览 2 评论 0 原文

我正在尝试在Heroku和Docker上部署RASA应用程序,我已经成功登录了容器,但是在遵循命令时运行错误

sudo heroku container:push web

错误

Error: Missing required flag:
›    -a, --app APP  app to run command against

dockerfile

FROM ubuntu:18.04
ENTRYPOINT []

RUN apt-get update && apt-get install -y python3.7 python3-pip

RUN pip3 install --upgrade --no-cache pip3==20.2
RUN python3 -m pip install --no-cache rasa==2.8.26

ADD . /app/

RUN chmod +x /app/start_services.sh
CMD /app/start_services.sh 

RUN chmod +x /app/start_action_service.sh
CMD /app/start_action_service.sh

start_services.sh

cd app/
#Start rasa server with nlu model
rasa run --model models --enable-api --cors "*" --debug \
         -p $PORT

start_action_service.sh

cd app/
#Start action server
rasa run actions \
     -p $PORT

I am trying to deploy rasa app on heroku and docker, I have successfully logged in with container but while running following command I am getting an error

sudo heroku container:push web

Error

Error: Missing required flag:
›    -a, --app APP  app to run command against

Dockerfile

FROM ubuntu:18.04
ENTRYPOINT []

RUN apt-get update && apt-get install -y python3.7 python3-pip

RUN pip3 install --upgrade --no-cache pip3==20.2
RUN python3 -m pip install --no-cache rasa==2.8.26

ADD . /app/

RUN chmod +x /app/start_services.sh
CMD /app/start_services.sh 

RUN chmod +x /app/start_action_service.sh
CMD /app/start_action_service.sh

start_services.sh

cd app/
#Start rasa server with nlu model
rasa run --model models --enable-api --cors "*" --debug \
         -p $PORT

start_action_service.sh

cd app/
#Start action server
rasa run actions \
     -p $PORT

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

姜生凉生 2025-02-15 05:24:16

您必须指定 heroku容器的应用程序名称

:push web -app your_app_name

,然后使用

heroku container发布应用程序:preasion web -app your_app_name

You must specify the application name like this

heroku container:push web --app YOUR_APP_NAME

And then release the app with

heroku container:release web --app YOUR_APP_NAME

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文