Deploy WAR file to Openshift without using GIT?

后端 未结 2 1715
我寻月下人不归
我寻月下人不归 2021-02-13 05:10

I want to upload a WAR file to my Openshift account , but it forces me to use GIT ot GITHUB (here). Please forgive me for saying this , but this is very very a

相关标签:
2条回答
  • 2021-02-13 05:16

    You may refer https://developers.openshift.com/en/tomcat-deployment-options.html

    Steps:

    1. git clone to download the source code

    2. remove src and pom.xml from repo and push

    3. Use Win Scp / FileZilla to log into your app

    4. Paste ROOT.war here /var/lib/openshift/{APP_ID}/app-root/runtime/dependencies/jbossews/webapps

    or simply app-root/runtime/dependencies/jbossews/webapps from the landing directory.

    0 讨论(0)
  • 2021-02-13 05:32

    Please follow the instructions in the following link

    https://www.openshift.com/kb/kb-e1088-how-to-deploy-pre-compiled-java-applications-war-and-ear-files-onto-your-openshift-gear

    More details :

    You can use like this :

    Hit git and log into the git bash , and then do this:

    scp <your local file name> <your hash number>@<your app name>-<your domain name>.rhcloud.com:~/<app name>/data/
    

    example:

    scp hello.csv 87b95e67477f442c9356a4ae49cd7c9e@cdapp-music.rhcloud.com:~/cdapp/data/
    

    External Sources : from here

    0 讨论(0)
提交回复
热议问题