Deploy documentation, How-to's and notes about previous deployment issues
Last Updated: December 31, 2018 by Pepe Sandoval
If you find the information in this page useful and want to show your support, you can make a donation
Use PayPal
This will help me create more stuff and fix the existent content...
Azure App Service is a component of Azure's Platform-as-a-Service (PaaS) or Infrastructure-as-a-Service (IaaS) offering, it is a cloud-based service for hosting Web, Mobile, API, and Logic apps.
Azure provices datacenters used to host applications and you "rent" services and offers some free services
PaaS and IaaS means Azure is handling the infrastructure and platform (System, OS, networking, etc.) for the application
Azure terms
App Insights is a service of Azure that allows for advanced analytics and tracking of web applications
Based on Azure Node.js get started and MSDEV280x Deploy with Git and Azure
https://myusername@myappservice.scm.azurewebsites.net:443/myappservice.git
git remote add azure <Git URL Here>
git push azure master
myappservice.azurewebsites.net
Based on https://devcenter.heroku.com/articles/getting-started-with-nodejs
sudo snap install heroku --classic
heroku login
node --version
, npm --version
and git --version
This step is needed only the first time you setup the system you plan to use to push/deploy to Heroku if you have already done this for a previous app you can skip this step
cd
to the repo of your project. Preferably on the root of your project the package.json
should exists if thats not the case a symlink may be used as a worrkaround
cd <your_project_git_repo_name_here>
Create heroku app: heroku create
, you should see an output like the following:
heroku create
Creating app... done, ⬢ thawing-inlet-61413
https://thawing-inlet-61413.herokuapp.com/ | https://git.heroku.com/thawing-inlet-61413.git
git remote -v
for this and should see something like:$ git remote -v
heroku https://git.heroku.com/thawing-inlet-61413.git (fetch)
heroku https://git.heroku.com/thawing-inlet-61413.git (push)
origin git@bitbucket.org:<your_project_git_repo_name_here>.git (fetch)
origin git@bitbucket.org:<your_project_git_repo_name_here>.git (push)
> if a remote branch was not created you must do it manually with the command: `heroku git:remote -a thawing-inlet-61413`
package.json
...
"scripts": {
"test": "node app.js",
"start": "node app.js"
},
...
push to heroku
remote: git push heroku master
if the
buildpack
is not detected you may get an error with this message you can set it up with:heroku buildpacks:set heroku/nodejs
Install Heroku CLI and log in:
sudo snap install heroku --classic
or curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
heroku login
cd
to the repo of your project and setup the Heroku remote: heroku git:remote -a <heroku_project_name_id_here>
e.g. heroku git:remote -a thawing-inlet-61413
verify a remote branch was setup correctly, you can use git remote -v
for this and should see something like:
$ git remote -v
heroku https://git.heroku.com/thawing-inlet-61413.git (fetch)
heroku https://git.heroku.com/thawing-inlet-61413.git (push)
origin git@bitbucket.org:<your_project_git_repo_name_here>.git (fetch)
origin git@bitbucket.org:<your_project_git_repo_name_here>.git (push)
heroku
using : git push heroku master
The service is still part of the free services from Heroku but you must verify your Heroku account to enable it which means adding a credit card in your billing information
Google Domains config
If you find the information in this page useful and want to show your support, you can make a donation
Use PayPal
This will help me create more stuff and fix the existent content...