-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
35 lines (27 loc) · 776 Bytes
/
build.sh
File metadata and controls
35 lines (27 loc) · 776 Bytes
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
#!/bin/sh
set -e
echo "Auto detected script"
DETECTED_METEOR_VERSION=$(bash /home/deploy/script/getMeteorVersion.sh)
echo "Detected Meteor version \"$DETECTED_METEOR_VERSION\""
FINAL_DOCKER_IMAGE=$(bash /home/deploy/script/getDockerImage.sh)
echo "Using docker image \"$FINAL_DOCKER_IMAGE\""
sh /home/deploy/script/prepare.sh
# Go to app folder
cd app
cd $APP_LOCATION
# Install NPM Deps
echo ""
echo "====> Installing app npm dependencies..."
echo ""
export PYTHON="/usr/bin/python2.7"
meteor npm install > /dev/null
# Build app
# export METEOR_PROFILE=100
# export METEOR_DEBUG_BUILD=1
echo ""
echo "====> Building app..."
echo ""
meteor build --architecture=os.linux.x86_64 /home/deploy/bundle --server-only --allow-superuser
echo ""
echo "====> App built"
echo ""