Git

Luis Matute

NodeJS Git Github Bash

Webhooks for Auto Deployments in NodeJS

Since I mostly use git for my projects, in my servers, I clone a copy of the project's repo, so that I don't have to FTP files in order to deply. So I'm going to show how to auto deploy the project. Whenever a commit gets pushed to the repo, a POST request will be made to our web server, a git pull will be done on the server via a shell script which will be executed with NodeJS. Note: For this to automatically update a NodeJS app, nodemon, supervirsor or a module/script that watches for code changes, must…

Read More

Luis Matute

NodeJS NGINX MongoDB Git CentOS

NodeJS, NGINX, MongoDB and Git Installation on CentOS 6.4

First of all, I'm gonna start by saying that I am not a linux pro, so bare with me if something here is wrong and let me know in a comment. This is just the way I do the setup for my NodeJS server, which will need access to github(since I want the app to auto pull from github whenever I push something from my dev), NGINX to handle the static content, MongoDB, and a couple other things I use. Here is a link to my shell script that will do the whole setup automatically (you're gonna have to…

Read More