Skip to content

Instantly share code, notes, and snippets.

@gbrian
Last active October 5, 2018 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbrian/cd6e406cce09403d71738ec81ca46685 to your computer and use it in GitHub Desktop.
Save gbrian/cd6e406cce09403d71738ec81ca46685 to your computer and use it in GitHub Desktop.
# Repo to deploy
export GIT_CLONE_REPO=$1
# Fix debian
apt update
apt-get install --reinstall build-essential
# Install git
apt install -y git
# Install node
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
# Clone the repository
echo "Cloning $GIT_CLONE_REPO"
git clone ${GIT_CLONE_REPO}
cd */
# Install & run
npm install
npm start &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment