1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-09-01 16:37:20 +00:00
BattleSim/bootstrap.sh
2016-02-01 23:19:30 +01:00

22 lines
544 B
Bash

#!/usr/bin/env bash
# Set the USER and HOME variables to be the vagrant user. By default, the script is run as root
export USER='vagrant'
export HOME='/home/vagrant'
# Install some necessary packages
sudo apt-get install -y redis-server curl git make g++
# Install NVM. Use source ~/.profile to "restart" the shell
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
source $HOME/.profile
nvm install 0.10
nvm alias default 0.10
npm install -g coffee-script grunt-cli mocha
# Rebuild
cd /vagrant
npm install --no-bin-links