Last active
October 5, 2018 20:15
-
-
Save gbrian/cd6e406cce09403d71738ec81ca46685 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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