đź“‹
flutter-clothing-app
GithubYoutube
  • Flutter Clothing App
  • Technologies Used
  • App Structure
  • System Requirement
  • Installation Guide
  • Node JS Dashboard
    • Clothing backend node js API
    • Introduction
    • Technologies
    • Project Requirement
    • Project Structure
    • How to Run
    • Push Notification
    • API Config
    • Release Build
  • Deployment
    • Heroku Node JS API
  • Clothing Web APP
    • Clothing web app
    • Technologies
    • Project Structure
    • Installation Guide
  • Thank you
    • Thank you
Powered by GitBook
On this page
  • Heroku NodeJS Api
  • Check Heroku-CLI installation
  • Create Heroku app and Deploy

Was this helpful?

  1. Deployment

Heroku Node JS API

PreviousRelease BuildNextClothing web app

Last updated 5 years ago

Was this helpful?

Heroku NodeJS Api

How to Deploy NodeJS API on Heroku Cloud Server.Install Heroku Cli

Once you are done with all the required changes in finish local setup of the project and ready for production.

You need to install . It's available for MAC, Linux and Windows machine. Please follow this link and install CLI for deployment.

Check Heroku-CLI installation

$ heroku --version

If above command return the version number of heroku-cli then your heroku cli install and ready for deployment.

You need to Login with your heroku credential

$ heroku login // It will ask your heroku Email / pass 

Create Heroku app and Deploy

  1. Login to .

  2. Create New app

dashboard‌

In our project you need to navigate inside the dist folder of api. Production dist will create once you run command

gulp build  // It will create Production build 
  1. Navigate inside the dist directory.

  2. Run git init in dist directory.

  3. Add Heroku repository to your project.

  4. You can commit the code and the push to Heroku. code commit command given on above screenshot.

gulp buildcontrol:heroku   // Use this command to Push on Heroku

Once app created go to the deploy Tab and you can see your app git info that required app to deploy.Heroku used Git to deploy your script‌

Heroku-cli
The Heroku CLI | Heroku Dev CenterHow to download, install, and start using, the Heroku CLI. The Heroku CLI used to be part of the Heroku Toolbelt.devcenter.heroku.com
https://dashboard.heroku.com