1 00:00:00,810 --> 00:00:02,530 As I mentioned at the end the last video. 2 00:00:02,550 --> 00:00:06,780 Let's go over to our off service really quickly inside the SRT directory. 3 00:00:06,780 --> 00:00:11,490 I will find the index not to yes file so rather than having a hard coded URL right here. 4 00:00:11,490 --> 00:00:16,110 Let's instead move that over to the deployment file and set it up as an environment variable. 5 00:00:16,170 --> 00:00:17,720 So I'm gonna take that string right there. 6 00:00:17,770 --> 00:00:24,600 I'm going to cut it all then go and find my off deployment file here's the off deployment file. 7 00:00:24,610 --> 00:00:30,880 I'll find the EMV section I'll add in a new environment variable with the name of Mongo your eye and 8 00:00:30,880 --> 00:00:32,180 then set the value. 9 00:00:32,440 --> 00:00:37,160 Like so we are inside the auth deployment file. 10 00:00:37,170 --> 00:00:44,910 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 11 00:00:44,910 --> 00:00:50,880 to the index not to yes file again inside the OTS service and let's do the same thing we just did over 12 00:00:50,880 --> 00:00:51,830 inside of tickets. 13 00:00:51,900 --> 00:01:05,200 So I'll say if not process in the Mongo your I wrote new air Mongo your right must be defined and then 14 00:01:05,230 --> 00:01:13,970 I will reference that as the first argument to connect the process and be Mongo your eye Icesave save. 15 00:01:14,630 --> 00:01:16,940 And then finally let's just make sure this is still working. 16 00:01:16,940 --> 00:01:20,670 So flip back over my terminal looks like the off deployment was restarted. 17 00:01:20,720 --> 00:01:23,130 So hopefully we are connecting to mongo. 18 00:01:23,570 --> 00:01:28,340 Now if you see an error here remember there is some weirdness for some reason when we start to change 19 00:01:28,340 --> 00:01:29,580 environment variables. 20 00:01:29,630 --> 00:01:33,830 So if you see some kind of error and you're really sure you read everything correctly I would encourage 21 00:01:33,830 --> 00:01:36,120 you to restart scaffold. 22 00:01:36,280 --> 00:01:39,310 All right so that should be it okay. 23 00:01:39,360 --> 00:01:41,830 No we've got some good setup complete with tickets. 24 00:01:41,870 --> 00:01:43,000 Let's take a pause right here. 25 00:01:43,040 --> 00:01:46,790 Going to start writing out some root handlers some tests and so on in the next video.