-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaunch.sh
42 lines (42 loc) · 972 Bytes
/
launch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# Node.tech simple node launcher!
function help () {
echo "Node.tech - a simple to deploy barebones app with angular"
echo "install = install the packages"
echo "run = deploy the app"
}
if [ $1 ]
then
case "$1" in
install)
echo "installing xcode"
xcode-select –-install
echo "installing brew"
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
brew doctor
brew install caskroom/cask/brew-cask
echo "installing git"
brew install git
echo "installing node"
brew install node
echo "installing packages and dependencies"
npm install
npm install -g bower
bower install
echo "running asset pipeline"
gulp scripts
gulp sass
echo "deploying app to localhost:3000"
forever app.js
;;
run)
echo "run!"
forever app.js
;;
*)
help
;;
esac
else
help
fi