diff options
Diffstat (limited to 'setup_droplet.sh')
-rwxr-xr-x | setup_droplet.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/setup_droplet.sh b/setup_droplet.sh index 52c3086..0f961bf 100755 --- a/setup_droplet.sh +++ b/setup_droplet.sh @@ -19,8 +19,16 @@ ufw allow www # not necessary for gruntworker itself ufw enable ufw status verbose -# setup Docker; written against Docker v1.2.0 -docker rmi gruntworker -docker build --tag gruntworker . 2>&1 | tee docker.build.log +# install Node.js +aptitude install build-essential # for native addons +curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - +DISTRO=$(lsb_release -c -s) +echo 'deb https://deb.nodesource.com/node_5.x ${DISTRO} main' > /etc/apt/sources.list.d/nodesource.list +echo 'deb-src https://deb.nodesource.com/node_5.x ${DISTRO} main' >> /etc/apt/sources.list.d/nodesource.list +aptitude update +aptitude install nodejs +aptitude install nodejs-legacy # out of compatibility paranoia, though I philosophically agree with Debian here + +# setup gruntworker itself cp ./gruntworker.crontab /etc/cron.d/gruntworker restart cron # until upstart goes away |