Last active
August 20, 2017 18:52
-
-
Save beeman/76dcef0499afe7d68d23df27583c9f33 to your computer and use it in GitHub Desktop.
Install Colmena on dply.co https://dply.co/b/q6aJuU0e
This file contains hidden or 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
#!/bin/sh | |
# Create and activate swap | |
dd if=/dev/zero of=/swapfile bs=256M count=4 | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
# Activate swapfile on boot | |
echo "" >> /etc/fstab | |
echo "/swapfile none swap sw 0 0" >> /etc/fstab | |
# Update Debian packages | |
export DEBIAN_FRONTEND=noninteractive; | |
apt-get update; | |
apt-get -y upgrade; | |
# Install and update Node + NPM | |
apt-get -y install nodejs-legacy npm | |
npm install -g n | |
n latest | |
# Install global dependencies | |
npm install -g @angular/cli@latest lerna loopback-cli | |
# Retrieve Colmena and run NPM Install | |
mkdir /app | |
cd /app | |
git clone -b develop https://github.com/colmena/colmena.git colmena | |
cd colmena | |
npm install | |
# We done... | |
touch /root/user-data-done.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment