![]() Then create a ship shipitfile.js in the root of your project. Npm install -save-dev shipit-deploy Deployment file Git remote set-url origin first step would install Shipit deployment tool npm install -save-dev shipit-cli You can check and change the Git remote URL using: git remote -v It is also preferable to use an SSH remote URL for the source code repository as opposed to an HTTP remote URL that would require a password that adds a step to the automated deployment. You would first have to make sure that you can SSH into your server from your local machine and ensure to add the public keys. This tutorial assumes that you are familiar with the basics of setting up a Node.js application on a server, including familiarity with: ![]() The deployment is done using Shipit package. It starts with a source code copy to other useful processes: This tutorial is to guide Node.js app programmers to automate their app deployment. However, it is preferable to write deployment scripts in the same programming language as your code. As a note, the language you use to perform automated deployment does not matter. I use Capistrano for deploying Ruby code and then sought a JavaScript alternative that was as simple and could perform the same task. They are used to make app deployment as simple as few command lines and make it easy to manage multiple versions of an app for reversion if necessary. I love automated deployments as they are great to make deployments quicker and more importantly, safer. How to automate the deployment of a Node.js app using Shipit.js
0 Comments
Leave a Reply. |