我只是按照以下Github repo中提到的步骤将Play应用程序部署到OpshShift:
https://github.com/opensas/play2-openshift-quickstart
当我尝试将我的资源上传到OpenShift时,出现以下错误:
remote: Stopping DIY cartridge
remote: Building git ref 'master', commit 54b44ff
remote: Preparing build for deployment
remote: Deployment id is 9379deb4
remote: Activating deployment
remote: Starting DIY cartridge
remote: chmod: cannot access `/var/lib/openshift/XXXXXXXXXX/app-root/runtime/repo/target/start': No such file or directory
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
为什么没有目标/开始目录?有什么想法吗?
答案 0 :(得分:4)
舞台任务已在Play 2.2中重写:
https://www.playframework.com/documentation/2.2.0/Migration22(准备分发)
请使用此代码而不是提到的回购:
答案 1 :(得分:3)
如果您正在使用Play framework 2.2+,则必须将您的openshift APP_COMMAND更改为从target / universal / bin / {your-app-name}而不是target / start开始。 您可以在.openshift / action_hooks / start文件中修改它。