-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathdistelli-manifest.yml
44 lines (37 loc) · 1012 Bytes
/
distelli-manifest.yml
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
43
44
bbaisch/nodejsbuilddeploy:
# Distelli Manifest example
# this example assumes the build and deploy servers are:
# Ubuntu 14.04
PreRelease:
- echo "---Beginning PreRelease---"
- echo "--Installing build dependencies--"
- echo "-Updating apt-get-"
- sudo apt-get -y update
- echo "-Installing nodejs-"
- sudo apt-get -y install nodejs
- echo "-Installing npm-"
- sudo apt-get -y install npm
- echo "--Building--"
- sudo npm install
- echo "--Testing--"
- npm test
PkgInclude:
- '*'
PkgExclude:
- node_modules/
PreInstall:
- echo "---Begining PreInstall---"
- echo "--Installing deploy dependencies--"
- echo "-Updating apt-get-"
- sudo apt-get -y update
- echo "-Installing nodejs-"
- sudo apt-get -y install nodejs
- echo "-Installing npm-"
- sudo apt-get -y install npm
PostInstall:
- echo "Begin PostInstall"
- npm install
Env:
- PORT: 3000
Exec:
- /usr/bin/nodejs app.js