我developped一个Java EE 7的应用程序,在本地运行罚款与WildFly 8WAR文件部署到OpenShift WildFly
我想将它部署到OpenShift。我创建了一个帐户,添加了一个WildFly 8盒式磁带,宣布该应用程序,在本地安装了Ruby和RHC。
现在,我被困在下一步,我的战争文件的部署。
所有文章,OpenShift文档,其他StackOverflow条目等...提及使用Git!我真的很惊讶,因为我对使用或学习Git没有兴趣。我已经启动并运行版本控制,甚至自动构建解决方案(对于好奇的SVN和Maven)。另外我不想让OpenShift拥有我的应用程序源代码。我只是想能够将战争文件上传到OpenShift。
如何将我的war文件简单地上传到OpenShift WildFly?
谢谢你的时间。
更新1
我找到了一种方法来选择手动部署,使用 “RHC配置,应用程序MYAPP --no-自动部署--deployment类型二元”。这工作得很好。
然后我想我应该使用“rhc部署一些\ path \ myapp.war --app myapp”。但这种失败(有些东西都是由我用“×”隐藏):
Deployment of file 'D:/foo/bar/myapp.war' in progress for application myapp ...
Starting deploy for binary artifact
Stopping gear
Stopping wildfly cart
Creating new deployment directory
Preparing deployment
Preparing build for deployment
gzip: stdin has more than one entry--rest ignored
/bin/tar: Child died with signal 13
/bin/tar: Error is not recoverable: exiting now
An error occurred executing 'gear binary-deploy' (exit code: 2)
Error message: Unable to extract deployment archive using command: /bin/tar -xz
For more details about the problem, try running the command again with the '--trace' option.
Error deploying local file. You can try to deploy manually with:
ssh -t [email protected] 'oo-binary-deploy'
SSH command finished with exit status = 255
根据该文件,我不知道如果“RHC部署”命令支持标准的战争文件。
也许,相反,我应该手动复制文件作为https://www.openshift.com/kb/kb-e1088-how-to-deploy-pre-compiled-java-applications-war-and-ear-files-onto-your-openshift-gear
公平起见,一旦你部署了战争,他们就拥有了你的代码。期。至于部署,[相关问题](http://stackoverflow.com/q/18695599/785663)提到了这个链接:https://www.openshift.com/blogs/getting-started-with-sftp-and -openshift,所以你可以显然部署一个简单的副本,一旦你设置了SSH密钥。 – mabi
该链接描述如何使用SFTP上传源,而不是二进制文件。没有Cookie给你。 :) –
到目前为止我发现的最好的是“rhc帮助部署”,提到了从二进制文件部署的可能性。但我仍然不知道如何。 –