Full-Stack Web Development with Vue.js and Node

(singke) #1
Going Live Chapter 10

This documentation itself will guide you when you follow each step. Let's go ahead and
deploy our own app in Heroku.


Installing Heroku

The first and foremost thing to do is to install Heroku.


Installing Heroku in Windows

We can install Heroku in Windows simply by downloading the installer from the official


page, https:/​/​devcenter.​heroku.​com/​articles/​heroku-​cli#download-​and-​install, and


running the installer.


Installing Heroku in Linux

Heroku can be installed in Linux with just a single command:


$ wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh

Installing Heroku in macOS X

We can install Heroku in macOS using homebrew:


$ brew install heroku/brew/heroku

We can check whether Heroku is installed using the following command:


$ heroku -v

This should print the version of Heroku that we just installed.


Deploying to Heroku

Once Heroku is installed, let's go to https://dashboard.heroku.com/apps, where we


will be creating a Heroku application for our project. Click on the Create New App button


and enter the application name that you want to provide to your application. We will be


naming it movie-rating-app-1 for our application:

Free download pdf