Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to deploy on heroku

heroku login
heroku create
git add .
git commit -m "test"
git push heroku master
heroku ps:scale web=1
heroku open
Comment

deploy on heroku

Open cmd in the directory of your project. Then enter the following things

git checkout branch-to-deploy

heroku git:remote -a app-name

git push heroku branch-to-deploy:main
Comment

how to deploy to heroku

heroku login
heroku create
git push heroku main

//...done
Comment

how to deploy heroku app

I assume you know how to use git.
I also assume you've ran the heroku create command for the app.

First commit the app if you haven't, then run this command:
git push heroku master

If there's an error, then try to fix it.

After that access the website by running this command:
heroku open

And run this command if you encounter an error with the website:
heroku logs --tail
Comment

Setting up App Deployment Heroku

//Setting up Heroku for deployment
$ heroku login
$ heroku git:remote -a datingwebappl
//.NET Core edge
$ heroku buildpacks:set https://github.com/jincod/dotnetcore-buildpack
//resources > add-ons > search: Heroku postgres > HobbyDev-Free = as database
// setting up variable > settings > config Vars > reveal > add key and value of cloudinary
//review you appsetting to reveal cloudinary settings
//Paste Heroku Connection string snippet > services.AddDbContext<DataContext> file:ApplicationSrviceExtentions.cs
//================================ back to cmd
$ heroku config:set ASPNETCORE_ENVIRONMENT=Production
$ git push heroku master
//after long wait ,the url will be given. ~end
// BUT if ever an error occur > DEBUG it to heroku> more > logs
// example secret key of the token is hasn't set
$ heroku config:set TokenKey=n373R_G0nn@_G1v3_y0u_Up_n3v37_90nn@_L3+_y0u_d0wn
Comment

PREVIOUS NEXT
Code Example
Shell :: split vim window 
Shell :: how to ignore modified file in git 
Shell :: bash substract varible 
Shell :: WSL with VPN 
Shell :: set forked repo as upstream 
Shell :: rebase branch github 
Shell :: ssh copy to clipboard 
Shell :: github.com api 
Shell :: getcomposer.org download 
Shell :: npm install on Termux 
Shell :: give sudo permission to vim ubuntu 
Shell :: sed replace all until match in line 
Shell :: export docker image 
Shell :: poetry delete environment 
Shell :: cut delimiter spaces 
Shell :: git pull new branch from remote 
Shell :: how to update kali linux 2022 
Shell :: edit alias terminal 
Shell :: CMD-Digital Clook 
Shell :: Building without Cython. Error: Please make sure the libxml2 and libxslt development packages are installed. 
Shell :: How to change MAC Termianl Prompt 
Shell :: show files of certain type in a repository ubuntu 
Shell :: bash cake command not found 
Shell :: install hg linux 
Shell :: list of unix commands 
Shell :: mailutils check mail 
Shell :: batch rename files fish 
Shell :: how to install from a Linux terminal 
Shell :: ubuntu networkManager change dns 
Shell :: count unique ip addresses linux accsses log 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =