#NoPayJan Offer - Access all CloudxLab Courses for free between 1st to 31st Jan

  Enroll Now >>

Setting Up Heroku

  • To host an app on Heroku, we need to create an account for ourselves on the platform.

  • Once we log-in, we choose the option to link the GitHub repository to Heroku.

  • Heroku then provides us the option to deploy(either automatically or manually). It installs the necessary dependencies as per the requirements.txt and sets all the configurations as per the Procfile.

  • After Heroku does all such background work to host our app, it provides the link to the app.

  • We could browse through that link and use our app.

INSTRUCTIONS
  • Go to Heroku

  • Sign up to register yourself on Heroku.

  • Click on New -> Create new app on the top-right corner of the page.

    enter image description here

  • Mention the app name, like my-image-class-app and click on Create app button.

    enter image description here

  • Within some seconds, we will be displayed the following page. Click on GitHub option and enter the name of the GitHub repository of the project.

    enter image description here

  • Now click on Connect button corresponding to the repository name.

    enter image description here

  • An Automatic Deployment mode readily makes live all the changes committed to GitHub. Let us choose Manual Deployment mode so that we could have more control over what we are making live on to the platform.

    enter image description here

  • The above action displays the below response, where we observe that Heroku is installing the dependencies as mentioned in the requirements.txt file. Heroku also configures the setting as mentioned in the Procfile. So along with the project files, these two are the 2 important files that should be present in our GitHub repository.

    enter image description here

  • Heroku finally returns us the URL of our hosted web app after completing the set-up process, so wait till you could see a URL, as shown below.

    enter image description here

    Copy the link and open it in a new tab. It displays the home-page of the app as shown below:

    enter image description here

    Hola! Go ahead and upload an image to see the top 3 predictions.

    enter image description here


No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...