So the last thing I want to do is to actually write an update scripts so that when I want to push a
new version of my application to the server, that everything works the way that it should, that it
does it in one command, that it pulls from get that it runs any migration's if they exist and that
finally it it stops and starts the application.
So let's do that.
It's pretty straightforward.
Let's go to our website Khedive, our WW w actually I got to connect to the server first, so let's
try that again.
There we are.
OK Verd w w w w book and I'm in the right spot and I will create a new file.
Vij update dot S.H. and I'm going to end it with Dot S.H. and I recommend that you do as well because
it's a shell script and Shell scripts begin with a hash bang, a no sign and an exclamation mark and
then bingo bash telling it that we're going to use the bash script.
And what I want to do, first of all, is pull from yet.
So I should just write git pull and that's one command.
And once that happens, I want to run the migration's so I can run sota migrate and that will run migration's.
If there are no migration's it'll just print and empty.
Nothing happened.
And then finally we need to recompile our application so we can write.
Go build Dasch old and we're going to build out to the file bookings with two O's and we're going to
compile from CMD Web Stargirl and once that's finished we want to run pseudo supervisor l stop book
and pseudo supervisor CTL Start book.
And that should be all we have to do for this part.
So let's save and quit that.
Now I need to make this executable.
So I'll write Modise 777 update dot S.H. and let's try running it.
Update.
It asked me for my pseudo password, I'll type that in stops, it starts again and we're good.
So it checked to see with get everything was up to date so there was nothing to happen there.
And then it ran.
So migration's and it gave me that warning file, which I could ignore because it doesn't matter and
there are no migration's.
But then it started and stopped the application and that's literally all I have to do.
So when I pushed things to get and I'm ready to deploy them to the server, all I have to do is to log
into the server, go to this directory and run the update script.
And that keeps things nice and clean and very, very simple.