无法将RASA应用推入Heroku容器
我正在尝试在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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须指定
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