2016-04-24 34 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

相關問題