-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·33 lines (21 loc) · 835 Bytes
/
deploy.sh
File metadata and controls
executable file
·33 lines (21 loc) · 835 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
#!/bin/sh
printf "Deploying App...\n"
POE="meteor"
# POE2="webpack-dev-server.js"
PR= echo | ps ax | grep $POE | grep -v grep | awk '{print $1}' | xargs kill > /dev/null 2>&1
# PR2= echo | ps ax | grep $POE2 | grep -v grep | awk '{print $1}' | xargs kill > /dev/null 2>&1
printf "\nDeploying...\n"
# cd backEnd
printf "\nDownloading dependencies\n"
meteor npm install
ROOT_URL=http://review-me.margffoy-tuay.com MONGO_URL=mongodb://127.0.0.1:27017 METEOR_ALLOW_SUPERUSER=true nohup meteor --settings settings-development.json --port 3001 > "$POE.out" 2> "$POE.err" &
printf "\nProcess PID: "
echo $!
# printf "\nDeploying frontend...\n"
# cd ../frontEnd
# printf "\nDownloading dependencies\n"
# export NODE_ENV=production
# npm install
# nohup npm start > "$POE2.out" 2> "$POE2.err" &
# printf "\nProcess PID: "
# echo $!