Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
ccbikai
9 years ago
Commit
473a01efd2fbbf16877cd6daf0dad891dfbf4659
2 parents
3fb1b674
22fcedee
Merge branch 'hotfix/api'
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
24 deletions
app.js
config/common.js
package.json
uninstall_node.sh
app.js
View file @
473a01e
...
...
@@ -7,11 +7,6 @@
const
config
=
require
(
'./config/common'
);
// use one apm
if
(
config
.
useOneapm
)
{
require
(
'oneapm'
);
}
const
express
=
require
(
'express'
);
const
path
=
require
(
'path'
);
const
bodyParser
=
require
(
'body-parser'
);
...
...
config/common.js
View file @
473a01e
...
...
@@ -28,7 +28,6 @@ module.exports = {
activity
:
'//activity.yohobuy.com'
,
index
:
'//m.yohobuy.com'
},
useOneapm
:
false
,
useCache
:
false
,
memcache
:
{
master
:
[
'192.168.102.205:12111'
],
...
...
@@ -79,16 +78,15 @@ if (isProduction) {
domains
:
{
api
:
'http://api.yoho.yohoops.org/'
,
service
:
'http://service.yoho.yohoops.org/'
,
liveApi
:
'http://
preapi.live.yoho.cn/'
// 'http://
api.live.yoho.cn/'
liveApi
:
'http://api.live.yoho.cn/'
},
memcache
:
{
master
:
[
'memcache1.yohoops.org:12111'
,
'memcache2.yohoops.org:12111'
,
'memcache3.yohoops.org:12111'
],
slave
:
[
'memcache1.yohoops.org:12112'
,
'memcache2.yohoops.org:12112'
,
'memcache3.yohoops.org:12112'
],
session
:
[
'memcache1.yohoops.org:12111'
,
'memcache2.yohoops.org:12111'
,
'memcache3.yohoops.org:12111'
],
timeout
:
100
0
,
timeout
:
100
,
retries
:
0
},
useOneapm
:
true
,
useCache
:
true
,
interfaceShunt
:
{
open
:
false
,
...
...
@@ -99,18 +97,17 @@ if (isProduction) {
Object
.
assign
(
module
.
exports
,
{
appName
:
'm.yohobuy.com for test'
,
domains
:
{
api
:
'http://api-test3.yohops.com:9999/'
,
service
:
'http://service-test3.yohops.com:9999/'
,
liveApi
:
'http://testapi.live.yohops.com:9999/'
api
:
process
.
end
.
TEST_API
||
'http://api-test1.yohops.com:9999/'
,
service
:
process
.
end
.
TEST_SERVICE
||
'http://service-test1.yohops.com:9999/'
,
liveApi
:
process
.
end
.
TEST_LIVE
||
'http://testapi.live.yohops.com:9999/'
},
memcache
:
{
master
:
[
'127.0.0.1:12111'
],
slave
:
[
'127.0.0.1:12112'
],
session
:
[
'127.0.0.1:12111'
],
timeout
:
100
0
,
timeout
:
100
,
retries
:
0
},
useOneapm
:
true
,
useCache
:
true
});
}
...
...
package.json
View file @
473a01e
...
...
@@ -44,7 +44,6 @@
"memcached"
:
"^2.2.1"
,
"moment"
:
"^2.14.1"
,
"morgan"
:
"^1.7.0"
,
"oneapm"
:
"^1.2.20"
,
"passport"
:
"^0.3.2"
,
"passport-local"
:
"^1.0.0"
,
"passport-qq"
:
"0.0.3"
,
...
...
uninstall_node.sh
deleted
100644 → 0
View file @
3fb1b67
#!/bin/bash
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom
\
|
while
read
i;
do
sudo rm /usr/local/
${
i
}
done
sudo rm -rf /usr/local/lib/node
\
/usr/local/lib/node_modules
\
/var/db/receipts/org.nodejs.
*
\ No newline at end of file
Please
register
or
login
to post a comment