From the course: Web Servers and APIs using C++

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Running WebSocket on Heroku

Running WebSocket on Heroku - C++ Tutorial

From the course: Web Servers and APIs using C++

Start my 1-month free trial

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, which is infinite-falls-24876, with the name of your app. So I do…

Contents