Last active
February 19, 2017 14:04
-
-
Save beeman/a9869302536e6eb26d2839da7a22b8f9 to your computer and use it in GitHub Desktop.
Install Colmena CMS on dply.co https://dply.co/b/JxCG6lY7
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 Yarn | |
| curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
| echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
| apt-get update && apt-get install yarn | |
| # Install Colmena CMS dependencies | |
| npm install -g p-s | |
| # Retrieve Colmena CMS and run NPM Install | |
| mkdir /app | |
| cd /app | |
| git clone https://github.com/colmena/colmena-cms.git colmena-cms | |
| cd colmena-cms | |
| npm install | |
| # Retrieve Colmena CMS and run YARN Install | |
| cd /app | |
| git clone https://github.com/colmena/colmena-cms.git colmena-cms-yarn | |
| cd colmena-cms-yarn | |
| yarn | |
| # 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