Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by dashboard.heroku.com #
 
PREVIOUS NEXT
Tagged: #Setting #App #Deployment #Heroku
ADD COMMENT
Topic
Name
8+1 =