本文介绍了“打击:播放:找不到命令";第一次尝试heroku时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试Play!与heroku一起使用,并正在浏览heroku网站中的指南( https://devcenter.heroku.com/articles/播放).部署示例应用程序后,我注意到dyno崩溃了.我检查了heroku日志,发现heroku找不到播放命令.

I'm trying out Play! with heroku and was going through the guide in the heroku site (https://devcenter.heroku.com/articles/play). After deploying my sample app, I noticed the dyno crashed. I checked the heroku logs and found out that heroku couldn't find the play command.

任何人都知道如何安装Play! Heroku上的框架?我搜索了开发中心,但找不到任何信息.

Anyone know how to install the Play! framework on heroku? I searched the dev center but couldn't find any info.

推荐答案

Heroku将自动检测到Play!应用程序并安装Play!将代码推送到Heroku时为您提供运行时.如果玩!未安装,很可能是您的应用未正确检测为Play!应用程序.

Heroku will automatically detect Play! applications and install the Play! runtime for you when you push your code to Heroku. If Play! isn't being installed, its likely that your app is not being detected properly as a Play! app.

在Play的情况下! 1.2.x(如您正在阅读的开发中心文章中所述),播放! buildpack 进行检测,对于Play 2.x, Scala buildpack 用于检测和安装Play!您的框架.有关 Heroku Play框架支持以及检测所需的详细信息,请参阅: https://devcenter.heroku.com/articles/play-support

In the case of Play! 1.2.x (as in the Dev Center article you were reading), the Play! buildpack that will do the detection, and in the case of Play 2.x, the Scala buildpack is used to detect and install the Play! framework for you. For more information about Heroku Play Framework Support and what is needed for detection, see:https://devcenter.heroku.com/articles/play-support

如果仍然存在检测到应用程序的问题,建议您克隆并推送 https://github.com/heroku/devcenter-play.git ,这是您正在阅读的开发中心文章中的完整示例应用程序:

If you are still having problems with your app getting detected, I'd recommend cloning and pushing https://github.com/heroku/devcenter-play.git, which is the complete sample app from the Dev Center article you were reading:

git clone https://github.com/heroku/devcenter-play.git
cd devcenter-play
heroku create
git push heroku master
heroku open

这篇关于“打击:播放:找不到命令";第一次尝试heroku时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 23:50