Skip to content

Instantly share code, notes, and snippets.

@MohhamedRafi
MohhamedRafi / nodejs-install-update.sh
Created November 2, 2016 21:48 — forked from madhums/nodejs-install-update.sh
Script to install update node.js
#!/bin/sh
# Usage:
# curl https://gist.githubusercontent.com/madhums/3791075/raw/38675884dfb7e3acd5672092807da54509748266/nodejs-install-update.sh | sh -s 0.8.10
# This script will simply install/update node.js to the version you specify.
# It will be installed/updated to $HOME/local/node
NODEJS=$1
@MohhamedRafi
MohhamedRafi / flightplan-deploy.md
Created June 7, 2016 01:30 — forked from learncodeacademy/flightplan-deploy.md
Deploy Node.js Apps with Flightplan

##Setup your server (this would ideally be done with automated provisioning)

  • add a deploy user with password-less ssh see this gist
  • install forever npm install -g forever

##Install flightplan

  • npm install -g flightplan
  • in your project folder npm install flightplan --save-dev
  • create a flightplan.js file
@MohhamedRafi
MohhamedRafi / deployUser.md
Created June 7, 2016 01:30 — forked from learncodeacademy/deployUser.md
Adding a deploy user in Linux

(wherever it says url.com, use your server's domain or IP)

Login to new server as root, then add a deploy user

sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy

And Update the new password