Skip to content

Commit 342aa43

Browse files
author
lutaoact
committed
deploy.sh
1 parent 5e45a93 commit 342aa43

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

deploy.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
echo "********************** DEV **********************"
4+
DEV_CMD="cd ~/node-server && git pull && NODE_ENV=production pm2 restart app"
5+
echo "$DEV_CMD"
6+
ssh dev "$DEV_CMD"
7+
8+
PDT_CMD="cd ~/node-server9006 && git pull && pm2 restart app9006"
9+
echo "********************** NODE1 **********************"
10+
echo "$PDT_CMD"
11+
ssh node "$PDT_CMD"
12+
13+
echo "********************** NODE2 **********************"
14+
echo "$PDT_CMD"
15+
ssh node2 "$PDT_CMD"

init_mac_dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#redis-server ~/some_config/redis.conf
1+
redis-server ~/some_config/redis.conf
22
#mongod --logappend --logpath /data/log/mongod.log --fork
33
rm -rf /data/pid/polipo.pid && polipo -c ~/some_config/polipo.conf

read.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
read -p 'please input your first name: ' firstname
33
read -p 'please input your last name: ' lastname
4-
echo -e "\nYour full name is: $firstname $lastname"
4+
echo "\nYour full name is: $firstname $lastname"

0 commit comments

Comments
 (0)