Join Troy Miles for an in-depth discussion in this video Running WebSocket on Heroku, part of Web Servers and APIs using C++.
- [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 a…- a infinite-falls-24876.…
Author
Released
8/23/2018- Working with Crow, the C++ micro web framework
- Deploying containers to Heroku
- Building websites and webpages
- Accessing data from a database
- Accessing data via RESTful APIs
- Creating API endpoints
- Running WebSockets on Heroku
Skill Level Intermediate
Duration
Views
Related Courses
-
Designing RESTful APIs
with Keith Casey1h 24m Intermediate -
Learning MongoDB
with Kirsten Hunter1h 35m Intermediate -
MariaDB for MySQL Users
with Sheeri Cabral2h 10m Intermediate
-
Introduction
-
1. Installing Our Tools
-
Installing Docker1m 29s
-
Installing Atom35s
-
Creating a Dockerfile5m 16s
-
Running a Dockerfile1m 50s
-
Adding a volume2m 33s
-
Building Crow9m 33s
-
Serving the example3m 7s
-
-
2. Deploying to Heroku
-
Installing the Heroku CLI1m 17s
-
3. Building Websites
-
Creating HTML pages3m 12s
-
Serving HTML pages4m 21s
-
Serving static content11m 4s
-
-
4. Data Access
-
Creating an mLab account1m 40s
-
Uploading JSON data4m 39s
-
Querying Mongo data15m 24s
-
Adding dynamic data to a page13m 35s
-
-
5. RESTful APIs
-
Creating an endpoint6m 8s
-
Parsing the path14m 50s
-
Reading the query string4m 51s
-
Converting to JSON data3m 1s
-
Solution: Create an endpoint3m 50s
-
-
6. WebSockets and Crow
-
Creating the C++ server code8m 37s
-
Running WebSocket on Heroku4m 15s
-
Conclusion
-
Next steps18s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Running WebSocket on Heroku