From the course: Web Servers and APIs using C++
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Running WebSocket on Heroku - C++ Tutorial
From the course: Web Servers and APIs using C++
Running WebSocket on Heroku
- [Instructor] Let's deploy our web server to Heroku again so we can check everything out in the cloud. So first thing I'm gonna do is go ahead and do a Control-C to stop the server running on my own docker container. I am going to do a clear screen. And I'm gonna go ahead and build it one more time even though I just did so. Again, just cause I like to be sure. With the app built, let's go ahead and do a heroku login. And I'm gonna go ahead and just clear this screen and do heroku login and it's gonna ask for my password and my two-factor authentication code. Now, next I do a heroku container:login and normally this does not prompt me for anything if I'm already logged in. Alright, so my login succeeded and I noticed that there is a Heroku update but I'm gonna skip that for now. And next, I'm gonna do a heroku container:push web -a For this command and for the next two after it, remember to replace the name of my app,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.