Promoting an application to production

Once an application has been deployed in staging, the next step is to promote it into the production environment. Let's perform the following steps to promote an application from staging to production:

  1. After you've confirmed that an application is stable, the next step is to promote it into production. Let's use the following command to push the current version from staging to production:
$ jx promote python-flask-docker --version 0.0.1 --env production
  1. For various reasons, mostly environmental limitations, the successful deployment of an application into staging doesn't guarantee successful deployment into production. After promoting the application, use the following command to check the progress of the production deployment. You need to see a Succeeded message after you run this command:
$ jx get activity -f python-flask-docker -w
  1. Our pod has been promoted to the jx-production namespace. Confirm that the pods are now running in the jx-production namespace as well:
$ kubectl get pods -n jx-production
NAME READY STATUS RESTARTS AGE
jx-python-flask-docker-8564f5b4cb-fhcpm 1/1 Running 0 104m

  1. List the applications. You will get both staging and production links for the same application:
$ jx get applications
APPLICATION STAGING PODS URL PRODUCTION PODS URL
python-flask-docker 0.0.1 1/1 http://python-flask-docker.jx-staging.35.188.140.152.nip.io 0.0.1 1/1 http://python-flask-docker.jx-production.35.188.140.152.nip.io