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