OpenShift uploading a Java Web project

Source: Internet
Author: User
Tags java web

Download current Client

OC (Openshift Client)

Https://mirror.openshift.com/pub/openshift-v3/clients/3.9.14/windows/oc.zip

1 switch to the directory where OC resides.

2 Login to the console and click "Copy Login Command" on your username

3 Running OC Login https://api.starter-us-west-2.openshift.com--token=85bfawhsr62xb-fxridjdvjcjvyworvnq9xpkqqju2o on the command line

4 Enter your account number and password

Oc-new Porject Javaweb

OC New-app wildfly:latest~. --name Myhelloworld New Application Server

OC start-build myhelloworld--from-file=d:\helloworld.war upload War pack

OC Expose SVC Myhelloworld make project visible to public network

OC Get Routes View project deployment, the following is the project of the Bo master deployment

OC Get routesname           host/port                                                      PATH      SERVICES       PORT       termination   wildcardmyhelloworld   myhelloworld-jdk180.7e14.starter-us-west-2.openshiftapps.com              myhelloworld   8080-tcp                 None

The war name the blogger just deployed is HelloWorld.

You can access the browser as long as you enter Http://myhelloworld-jdk180.7e14.starter-us-west-2.openshiftapps.com/helloworld.

The effect is as follows

Reference URL: https://blog.openshift.com/deploying-war-file-openshift-online-3/

OpenShift uploading a Java Web project

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.