Deploy WAR file to Openshift without using GIT?
Solution 1
Please follow the instructions in the following link
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 [email protected]:~/cdapp/data/
External Sources : from here
Solution 2
You may refer https://developers.openshift.com/en/tomcat-deployment-options.html
Steps:
git clone
to download the source coderemove
src
andpom.xml
from repo and pushUse
Win Scp
/FileZilla
to log into your appPaste
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.
Related videos on Youtube
Comments
-
JAN over 1 year
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 annoying .
Is there any way upload a WAR file straight to my application without using some third party ?
My application (in the Openshift) consists of : Tomcat 7 (JBoss EWS 2.0), MySQL 5.5 .
Much appreciated
-
Prasanna over 9 yearsopenshift.com/kb/… : There is a method to deploy war using SCP/SFTP
-
-
JAN over 9 years@BobMalooga: I fixed his comment , and tested it on my machine with the example I've added , and it works OK.
-
arcuri82 almost 7 yearsthis does not answer the question, as it uses Git.
-
Ravi Shekhar almost 7 yearsNo it does not use git for source version control. It just says get the code via git and delete the [dot] POM file from repo. Otherwise it will keep on picking maven builds.
-
Ravi Shekhar over 6 years@zygimantus I have never tried wildfly. It should be similar, directory structure may vary slightly.