more
This commit is contained in:
parent
d841b07637
commit
470cc9e7c9
@ -1,8 +1,11 @@
|
||||
#!/bin/bash
|
||||
NVM="~/.nvm"
|
||||
DEV="~/dev"
|
||||
LIVE="~/live"
|
||||
|
||||
## Update initial packages
|
||||
sudo apt-get -y --force-yes update
|
||||
sudo apt-get -y --force-yes upgrade
|
||||
#sudo apt-get -y --force-yes upgrade
|
||||
|
||||
# install apps
|
||||
sudo apt-get --assume-yes install build-essential git nginx htop screen wget curl
|
||||
@ -16,14 +19,25 @@ sudo swapon -s
|
||||
sudo swapon /swapfile
|
||||
|
||||
# setup node and npm
|
||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
|
||||
source .bashrc
|
||||
nvm install v5.7.0
|
||||
npm install -g gulp bower pm2 npm-check npm-install-missing ember-cli phantomjs
|
||||
if [ ! -d "$NVM" ]; then
|
||||
# Will enter here if $DIRECTORY exists, even if it contains spaces
|
||||
|
||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
|
||||
source .bashrc
|
||||
nvm install v5.7.0
|
||||
npm install -g gulp bower pm2 npm-check npm-install-missing ember-cli phantomjs
|
||||
|
||||
fi
|
||||
|
||||
# get source and build
|
||||
mkdir ~/live
|
||||
mkdir ~/dev
|
||||
|
||||
if [ ! -d "$LIVE" ]; then
|
||||
mkdir ~/live
|
||||
fi
|
||||
|
||||
if [ ! -d "$DEV" ]; then
|
||||
mkdir ~/dev
|
||||
fi
|
||||
|
||||
cd ~/dev
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user