-
-
Notifications
You must be signed in to change notification settings - Fork 247
Deploying Backend Method #2
Deploying Backend - Method 1: Deploy the Backend Using Git and Heroku CLI Manually Deploying the Backend Server.
- Click Here to Download the Latest Nodejs Version.
- Click Here to Download the Latest Git Version.
-
Before Using Git, You have to Configure the Git username and email from which it should Commit the Changes, Which can be Done by:
- Set the Username (Replace Yours with the Example)
> git config --global user.name "FIRST_NAME LAST_NAME"
- Set the Email (Replace Yours with the Example)
> git config --global user.email "[email protected]"
-
Install the Latest Heroku CLI Version by Clicking Below:
- Windows - 64 bit
- Windows - 32 bit
- For MacOs:
> brew tap heroku/brew && brew install heroku
- For Linux:
> sudo snap install --classic heroku
(or)
> npm install -g heroku
-
You have to Download the Latest Backend Server Zip from my Repo. You can find the Latest Releases of the Backend Here. Backend Releases will be Tagged as "backend-V.V.V"
-
Current Latest Backend Version - backend-v2.2.4.
-
Download the Zip from the Assets.
-
After Downloading the Zip, Extract the Zip to a Location. Open Terminal/cmd/powershell in that folder where You have Extracted.
-
Type the Following Commands:
- Initialize the Folder with Git:
> git init
- Add the Files for Staging Area:
> git add .
- Commit those Changes:
> git commit -m "Upload Backend for Deployment"
- Every Commands below Should also be in the Same Folder.
- After the Above Step, login in to Heroku:
> heroku login
- Create a Heroku app in the Browser Logging into their Website.
- Enter a unique app name when Prompted. This will come before herokuapp.com,
Example: https://sample.herokuapp.com
-
Go back to same Folder in which git was Initialized and open cmd/terminal/powershell.
-
Enter the Following Commands:
- Set the Git for Your Heroku App (Replace with Your App name in the Command):
> heroku git:remote -a YOUR-APP-NAME
- Use Git to Push the Backend to Heroku:
> git push heroku master
If You see the Build Process then You Have Successfully Deployed the Backend Code to Heroku. Next Step is to Configure Environment Variables. Go to Next Page for Configuring It.
Go Back
Automatic Deployment of Backend Method
Go to Next Page
Important: This project is only for personal use to share content with family and friends, do not use for commercial purpose. You are Absolutely Free to Use it for Personal and for Educational Purposes, I don't Restrict that but If I Find anyone Using for Commercial Purposes, then Strict Action can be Taken.
Is that documentation missing something? Isn't it clear enough? Help me improve it by filing a Github issue.
Wiki Documented and Structured by - Shan.tk