WEBVTT
Kind: captions
Language: en

00:00:00.030 --> 00:00:05.339
Now that we have a configured vagrant
file we can go ahead and start our

00:00:05.339 --> 00:00:12.300
vagrant box on our machine you use
vagrant by using the terminal or the git

00:00:12.300 --> 00:00:17.520
bash and you can start the vagrant
server for our project by changing to

00:00:17.520 --> 00:00:24.590
our project location so that's the root
of our project and typing vagrant up

00:00:24.590 --> 00:00:29.400
what this will do is it will download
the base image that we've specified in

00:00:29.400 --> 00:00:33.870
our vagrant file and then it will use
VirtualBox to create a new virtual

00:00:33.870 --> 00:00:40.110
machine and then run our provisioning
script when it stars the machine we can

00:00:40.110 --> 00:00:44.670
then use our development server and
connect to it using the vagrant tool

00:00:44.670 --> 00:00:48.570
which I'll show you right after the
machine has been created

00:00:48.570 --> 00:00:54.149
once the vagrant box has been started we
can then connect to the vagrant server

00:00:54.149 --> 00:01:00.719
by using the vagrant SSH command since
our box is a completely different

00:01:00.719 --> 00:01:05.400
isolated box on our machine so it's a
guest operating system we need to

00:01:05.400 --> 00:01:12.060
connect to it using SSH the way that you
do this is you type vagrant SSH and then

00:01:12.060 --> 00:01:16.950
vagrant will handle the connection to
the machine for you you can see that

00:01:16.950 --> 00:01:22.170
you're on the machine because the input
changes for your git bash or your

00:01:22.170 --> 00:01:27.479
terminal window you can see that we're
now on vagrant at Ubuntu Bionic to

00:01:27.479 --> 00:01:32.280
disconnect from the machine simply type
exit and this will take you outside of

00:01:32.280 --> 00:01:37.380
the machine back onto your local machine
so if you type vagrant SSH and you

00:01:37.380 --> 00:01:41.369
connect to the machine any command that
you run in the terminal while you're

00:01:41.369 --> 00:01:45.930
connected to the machine will be ran on
your guest operating system or the

00:01:45.930 --> 00:01:52.409
development server instead of your local
machine okay so that's how you connect

00:01:52.409 --> 00:01:56.210
to the server with vagrant

