forked from brandonbaisch/nodejsbuilddeploy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
distelli-manifest.yml
49 lines (41 loc) · 1.17 KB
/
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
45
46
47
48
49
bmcghee/example-node:
# Distelli Manifest example
# this example assumes the build and deploy servers are:
# Ubuntu 14.04
Build:
- echo "---Building---"
- set +e; source /etc/profile; set -e
- nvm install v4.2.1
- 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
InstallTemplates:
- "views/index.jade"
PostInstall:
- echo "Begin PostInstall"
#- npm install
- cp node_modules/newrelic/newrelic.js .
- sed -i "s|license key here|$NR_INSTALL_KEY|g" newrelic.js
- sed -i "s|My Application|$NR_APP_NAME|g" newrelic.js
Env:
- PORT: "4000"
- DISTELLI_INSTALLVIEW="templates/notset.json"
- NR_INSTALL_SILENT: "TRUE"
- NR_APP_NAME: "NodeJS App"
- NR_INSTALL_KEY: "fc297ee8baef8312725cc134642ab4fce85a7666"
- PORT: "8000"
Exec:
- /usr/bin/nodejs app.js