As I mentioned at the end the last video.
Let's go over to our off service really quickly inside the SRT directory.
I will find the index not to yes file so rather than having a hard coded URL right here.
Let's instead move that over to the deployment file and set it up as an environment variable.
So I'm gonna take that string right there.
I'm going to cut it all then go and find my off deployment file here's the off deployment file.
I'll find the EMV section I'll add in a new environment variable with the name of Mongo your eye and
then set the value.
Like so we are inside the auth deployment file.
So going to triple check it and make sure I've got off off I'll then save this and I will go back over
to the index not to yes file again inside the OTS service and let's do the same thing we just did over
inside of tickets.
So I'll say if not process in the Mongo your I wrote new air Mongo your right must be defined and then
I will reference that as the first argument to connect the process and be Mongo your eye Icesave save.
And then finally let's just make sure this is still working.
So flip back over my terminal looks like the off deployment was restarted.
So hopefully we are connecting to mongo.
Now if you see an error here remember there is some weirdness for some reason when we start to change
environment variables.
So if you see some kind of error and you're really sure you read everything correctly I would encourage
you to restart scaffold.
All right so that should be it okay.
No we've got some good setup complete with tickets.
Let's take a pause right here.
Going to start writing out some root handlers some tests and so on in the next video.