-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
3,220 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules | ||
.DS_Store | ||
log | ||
config_cn.js | ||
config_en.js | ||
Encrypt.js | ||
test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
// 使用 IntelliSense 了解相关属性。 | ||
// 悬停以查看现有属性的描述。 | ||
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"program": "${workspaceFolder}/server.js" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Test", | ||
"program": "${workspaceFolder}/test/test.js" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
#copy client static files | ||
|
||
deployDir=/home/devops/web_demo/project/HQ-PHASE-3 | ||
ServerName=${@:$OPTIND:1} | ||
|
||
# Rev="$(git rev-parse HEAD)" | ||
|
||
# echo $Rev | ||
# cd dist | ||
cp modules/config_cn.js modules/config.js | ||
rsync -v -z -r --progress -h --exclude=node_modules/* --exclude=.* --exclude=deploy_test.sh . $ServerName:$deployDir | ||
|
||
echo service deployed on:$ServerName:$deployDir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
#copy client static files | ||
|
||
deployDir=/home/test-pc/HQ-PHASE-3 | ||
ServerName=${@:$OPTIND:1} | ||
|
||
# Rev="$(git rev-parse HEAD)" | ||
|
||
# echo $Rev | ||
# cd dist | ||
cp modules/config_en.js modules/config.js | ||
rsync -v -z -r --progress -h --exclude=node_modules/* --exclude=.* --exclude=deploy_test.sh . $ServerName:$deployDir | ||
|
||
echo service deployed on:$ServerName:$deployDir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
/** | ||
* Application configuration section | ||
* http://pm2.keymetrics.io/docs/usage/application-declaration/ | ||
*/ | ||
apps : [ | ||
|
||
// First application | ||
{ | ||
name : 'HQ-3', | ||
script : 'server.js', | ||
env: { | ||
COMMON_VARIABLE: 'true', | ||
NODE_ENV: 'production' | ||
} | ||
} | ||
] | ||
}; |
Oops, something went wrong.