forked from java2kus/deploy_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (53 loc) · 1.33 KB
/
Makefile
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
include deployment/vars.mk
include deployment/docker.mk
include deployment/aws.mk
#
# Give the build a chance to override anything that has already been setup.
# This file should NOT be included in your repo and is inteded to be added
# at build time to allow the build agent to override any of your variables.
#
ifneq (,$(wildcard deployment/build.mk))
include deployment/build.mk
endif
#####
#
# Default Targets. Please edit these to work properly with your application.
#
#####
#
# Our default target, clean up, do our install, test, and build locally.
#
default: clean install test build
#
# Do our download/install process.
#
install:
NODE_ENV=production npm install --quiet
#
# Do what we need to do to run our unit tests.
#
test:
@echo "Must add tests yo!"
#
# Build/compile our application.
#
build:
@echo "Jacked up and good to go sir!"
#
# Execute the application.
#
run:
NODE_ENV=$(APP_ENV) node server.js
#
# Clean up after our install and build processes. Should get us back to as
# clean as possible.
#
clean:
rm -rf node_modules npm-debug.log
#
# Do the bulk of the work to do our deployment container build. This runs inside
# the build container and does the heavy lifting of build/compile, testing, and
# creating the final build container.
#
deployment: clean install test build
.PHONY: install test build clean run deployment