Hosting pipeline

GetGoing: Introduction to Golang API hosting using heroku
1 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
This is a free item
$0.00
د.إ0.00
Kz0.00
ARS$0.00
A$0.00
৳0.00
Лв0.00
Bs0.00
B$0.00
P0.00
CA$0.00
CHF 0.00
CLP$0.00
CN¥0.00
COP$0.00
₡0.00
Kč0.00
DKK kr0.00
RD$0.00
DA0.00
E£0.00
ብር0.00
€0.00
FJ$0.00
£0.00
Q0.00
GY$0.00
HK$0.00
L0.00
Ft0.00
₪0.00
₹0.00
ISK kr0.00
¥0.00
KSh0.00
₩0.00
DH0.00
L0.00
ден0.00
MOP$0.00
MX$0.00
RM0.00
N$0.00
₦0.00
C$0.00
NOK kr0.00
रु0.00
NZ$0.00
S/0.00
K0.00
₱0.00
₨0.00
zł0.00
₲0.00
L0.00
QR0.00
SAR0.00
SEK kr0.00
S$0.00
฿0.00
₺0.00
$U0.00
R0.00
ZK0.00
Already have an account? Log In

Transcript

Hi, guys. So if you look at our code, you realize that we have our own whole application running on our localhost 3000. Now, how does this How does this really run? So, you look at import packages, you see that it imports certain packages, some local packages and some external packages like our my skill gold driver. So this my SQL go driver exists on our go path. So if you do CD, dollar go path, Guru SRC and then go to github.com.

Go to go SQL driver, you can see that this exists on our machine. So our machine can say that, okay, yes, import this from machine only. But this doesn't exist on our cloud server. So how would we know how or other how the cloud server know that this dependency is needed for the code. So this is what is known as rendering. In rendering, what we do is we make a folder called vendor and all of our external dependencies go inside that folder.

So What goe does then is it looks at the import path. It says Okay, first I'm going to look at my local vendor folder. If it is in my local vendor folder, then no problem, but it's not in my local vendor folder, I'm going to go to dollar go path, then when it goes to go path, if it doesn't find it, it's going to crash. So that is why we're going to be rendering. So after rendering, we have a folder with a list of dependencies and everything. Then we push our whole repository into the cloud repository.

And then Heroku starts the server and does everything perfectly fine. So in the next video, I'm going to be telling you about how we can vendor and how we can push to the cloud. So stay tuned guys and see you guys in the next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.