WEBVTT

00:00.000 --> 00:01.470
Instructor - In this section,

00:01.470 --> 00:03.480
we finally get to deploy our application

00:03.480 --> 00:05.310
after a ton of work.

00:05.310 --> 00:08.940
So we've made all of our changes to our K eight folder

00:08.940 --> 00:10.260
all the config files in there.

00:10.260 --> 00:12.420
We've got our Deploy SH file set up

00:12.420 --> 00:14.175
and the Travis dot YAML file set up.

00:14.175 --> 00:15.990
So to initiate our deployment

00:15.990 --> 00:17.970
all we have to do is commit our work

00:17.970 --> 00:20.940
and then push it to our master branch on GitHub.

00:20.940 --> 00:23.100
Travis CI is then going to automatically pick

00:23.100 --> 00:26.370
up our changes, run this Travis dot YAML file, and then

00:26.370 --> 00:29.910
hopefully eventually run the deploy dot SH file as well.

00:29.910 --> 00:31.380
Now, before we do anything here

00:31.380 --> 00:33.985
I want you to know that this entire setup process

00:33.985 --> 00:35.970
even though I took really good notes

00:35.970 --> 00:37.440
on my side of things, and I've gone

00:37.440 --> 00:39.750
through this process many times entirely possible

00:39.750 --> 00:41.640
that I made a mistake, entirely possible

00:41.640 --> 00:44.190
you made a mistake or a typo someway along the line.

00:44.190 --> 00:47.700
So if it looks like at any stage you get an air message

00:47.700 --> 00:48.870
first thing to do is to go

00:48.870 --> 00:50.340
to the next section along with me.

00:50.340 --> 00:52.200
Maybe I got the same air message as well

00:52.200 --> 00:54.480
and so we'll do a little bit of troubleshooting together.

00:54.480 --> 00:56.310
If that still doesn't help, then you can always go

00:56.310 --> 00:58.710
over to the QA and I'll do my best to help you

00:58.710 --> 01:00.960
understand exactly what went wrong.

01:00.960 --> 01:02.486
All right, so let's get to it.

01:02.486 --> 01:04.290
I'm gonna first begin by going back over

01:04.290 --> 01:07.230
to my terminal inside the complex directory.

01:07.230 --> 01:10.110
I'll do a get status inside of here and we'll verify that,

01:10.110 --> 01:13.050
yep, we've got a couple of different files changed.

01:13.050 --> 01:16.500
I'm going to add both those changes, and then

01:16.500 --> 01:21.273
I'll commit both of them and say added deployment scripts.

01:23.040 --> 01:27.330
And then I'm going to do, I get Push Origin master.

01:27.330 --> 01:29.700
All right, here's the moment of truth.

01:29.700 --> 01:33.240
So we'll run that command, it's gonna push our changes up

01:33.240 --> 01:35.690
and then we're going to flip over to our browser.

01:36.570 --> 01:40.083
We'll open up a new tab and go to Travis CI dot org.

01:41.070 --> 01:41.910
And then once here, we'll go

01:41.910 --> 01:44.730
to our new multi K eights project.

01:44.730 --> 01:45.660
Now, I want you to be aware

01:45.660 --> 01:48.120
that the first thing that can possibly go wrong is

01:48.120 --> 01:51.300
you might not see the build show up inside of here.

01:51.300 --> 01:53.580
If you do not see the build show up inside of here

01:53.580 --> 01:54.840
then it very likely means

01:54.840 --> 01:56.910
that there is a typo somewhere inside

01:56.910 --> 01:58.740
of your Travis dot YAML file.

01:58.740 --> 02:01.848
If anything is wrong inside the Travis dot YAML file

02:01.848 --> 02:04.770
you're never gonna see the build show up here,

02:04.770 --> 02:07.680
and Travis is going to essentially just silently fail

02:07.680 --> 02:09.600
and it's going to never pick up any change

02:09.600 --> 02:11.790
and it's not gonna give you any air message.

02:11.790 --> 02:13.650
Now you notice that my bell just got picked up.

02:13.650 --> 02:15.780
So if you wait a couple minutes and you still don't

02:15.780 --> 02:18.120
see anything show up here, then it very likely means

02:18.120 --> 02:20.700
that you have a typo inside this file.

02:20.700 --> 02:21.930
So if you have a typo inside of here

02:21.930 --> 02:25.410
remember the entire source code for this entire course is

02:25.410 --> 02:28.020
in a Git repository, and it's linked towards the very start

02:28.020 --> 02:28.890
of the course.

02:28.890 --> 02:30.570
So you can always pull open.

02:30.570 --> 02:32.670
As a matter of fact, I got a link for it right here.

02:32.670 --> 02:33.990
Let's give it to you right away.

02:33.990 --> 02:35.103
Make life easy.

02:36.900 --> 02:38.926
So the link to the repository with all the completed code

02:38.926 --> 02:43.926
is my Docker or my GitHub ID, Steven Greer slash docker CAS

02:44.197 --> 02:47.764
and so inside of here, you can find that complex directory

02:47.764 --> 02:50.430
and it's not in here yet because I haven't updated

02:50.430 --> 02:51.263
this repo yet.

02:51.263 --> 02:53.190
But inside of the complex directory, you're going

02:53.190 --> 02:55.530
to see my dot Travis dot YAML file.

02:55.530 --> 02:57.833
So you can always compare yours against mine.

02:57.833 --> 02:59.340
Now if you do compare,

02:59.340 --> 03:00.929
do remember that you cannot just do a

03:00.929 --> 03:03.450
direct copy paste because there is some

03:03.450 --> 03:07.072
project specific information in here like the project ID,

03:07.072 --> 03:10.110
the compute zone, the cluster name

03:10.110 --> 03:12.120
and then some other differences inside of here like

03:12.120 --> 03:15.660
the Docker ID and some details around the open SSL command.

03:15.660 --> 03:17.220
But you can at least compare and contrast to

03:17.220 --> 03:20.040
make sure you don't have any obvious typos.

03:20.040 --> 03:21.540
All right, so we'll take a pause right here.

03:21.540 --> 03:23.910
It looks like I've already got a nice little air going on

03:23.910 --> 03:25.680
so we're gonna take a quick break.

03:25.680 --> 03:27.120
We're gonna figure out what just went wrong and

03:27.120 --> 03:28.590
we'll start fixing it.

03:28.590 --> 03:31.040
So quick pause and I'll see you in just a minute.
