2016-04-24 59 views
0

我有一个OpenShift帐户,我试用了免费试用版。我有一个使用Play框架构建的Scala Web应用程序。我现在想要将这个应用程序部署到我使用免费的OpenShift试用创建的Cartridge。如果我ssh到OpenShift帐户,我得到了我的家以下几点:在OpenShift上播放框架应用程序

drwxr-xr-x. 4 62 Apr 24 02:21 app-deployments 
drwxr-xr-x. 5 root      4096 Apr 24 02:17 app-root 
drwxr-xr-x. 2 root      root      85 Apr 24 02:22 gear-registry 
drwxr-xr-x. 3 root      root      23 Apr 24 02:18 git 
drwxr-xr-x. 10 4096 Apr 24 02:19 haproxy 
drwxr-xr-x. 8 95 Apr 24 02:17 play2 

我克隆随盒附带的遥控器的Git仓库,并将其包含在虚拟游戏的框架结构。我可以肯定我的东西合并到这个结构中。但是,我如何构建和启动服务器。

更好的办法是不使用墨盒作为开始播放框架不需要一个。有什么建议么?

回答

1

我终于找到了一个办法做到这一点:

1. Play dist - this would create the zip file in target/universal/ 

2. Copy the zip file to my git repo and push this file to the server using git push 

3. Change the PLAY2_APPLICATION_PATH variable in ~/.profile in the server and point it to the zip file that I uploaded to the server 

详细参考,这里是链接:

https://github.com/tyrcho/openshift-cartridge-play2