Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Google Cloud AI Services Quick Start Guide

You're reading from  Google Cloud AI Services Quick Start Guide

Product type Book
Published in May 2018
Publisher Packt
ISBN-13 9781788626613
Pages 234 pages
Edition 1st Edition
Languages
Author (1):
Arvind Ravulavaru Arvind Ravulavaru
Profile icon Arvind Ravulavaru

Deploying to Heroku

This step is optional, and you can do it if you are interested in deploying this app to Heroku. To continue with this section, you need to have set up a Heroku account and installed the Heroku Toolbelt. Once that is done, open a new Command Prompt or Terminal inside the smart-exchange-base folder, then run:

$ heroku login

This is a prompt for the Heroku credentials that you have signed up with. Next, let's get our application ready for deployment. Run this:

$ npm run build

Or, run this:

$ yarn build

This will run the required scripts to build the final dist folder, which will be deployed to Heroku. Once the build is completed, run the following:

$ git add -A
$ git commit -am "Video Intelligence API Integration Commit"

Let's push the code to Heroku. Run this:

$ git push heroku master

If everything goes well, the code will be uploaded to Heroku...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}