You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stefania edited this page Jan 31, 2021
·
1 revision
Instructions
Install heroku
npm install -g heroku
For Windows OS users run the command in the powershell (recommended as admin)
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Check the heroku version by typing heroku version. If this does not work, then set the path to heroku in the project folder:
C:\Users\your_folder> SET PATH = C:\Program Files\heroku\bin
Create profile at the app's root.
Add to the created file the line
web: node main.js
Before running the create command, heroku may ask for login. Login to heroku as it demands in console.
After login is successfully done, run heroku create. The URL is generated.
To publish the code from our git repository to heroku, run the command: git push heroku master.
If our application depends on the database, then the DB for production should be set up.