Skip to content

Commit

Permalink
feat: 修改名称
Browse files Browse the repository at this point in the history
  • Loading branch information
px0078 committed Jan 21, 2020
1 parent 918a7b6 commit d7a1505
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# demo-py_edu
# demo-edu

this is a simple template for midway examples.
you can push it to midway-examples after created or find bugs.
Expand Down
22 changes: 0 additions & 22 deletions init.db/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,17 +210,6 @@ db.authmodules.insert([
update_date: "2019-11-25T10:12:49.139Z",
uri: "auth.module.edit,auth.module.update"
},
{
sort: 0,
_id: ObjectId("5d25b469ae572c2fe9fdce18"),
__v: 0,
create_date: "2019-08-02T08:17:10.029Z",
describe: "",
name: "导出按钮",
parent_id: "5ae2baff06ebe130282a3972",
update_date: "2019-11-25T10:12:49.141Z",
uri: "auth.module.export"
},
{
sort: 0,
_id: ObjectId("5d26e76d1d09cb6996fc81ce"),
Expand All @@ -232,17 +221,6 @@ db.authmodules.insert([
update_date: "2019-11-25T10:12:49.142Z",
uri: "sys.common.getOSSToken"
},
{
sort: 0,
_id: ObjectId("5d43f034a1931579ad3b5a59"),
name: "导入按钮",
uri: "auth.module.import",
describe: "",
parent_id: "5ae2baff06ebe130282a3972",
create_date: "2019-08-02T08:11:32.185Z",
update_date: "2019-08-02T08:11:32.185Z",
__v: 0
},
{
sort: 0,
_id: ObjectId("5def9bca4ed70ff72379d987"),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "py_edu",
"name": "edu",
"version": "1.0.0",
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion procfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = (pandora) => {
pandora

// 定义一个进程,名字叫 processA
.process('py_edu')
.process('edu')

// 如果 scale 大于 1 ,将使用 Node.js 的 Cluster 模块自动产生进程组
// 默认值即是 1
Expand Down
4 changes: 2 additions & 2 deletions src/config/config.default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default (appInfo: any) => {
config.mongoose = {
clients: {
back: {
url: 'mongodb://127.0.0.1:27017/pyedu',
url: 'mongodb://127.0.0.1:27017/edu',
options: {
useUnifiedTopology: true,
useFindAndModify: false,
Expand All @@ -34,7 +34,7 @@ export default (appInfo: any) => {
config.jwt = {
enable: true, // enable middleware
client: {
secret: 'py_edu-0078',
secret: '~!@#_edu+6379-8080*27017/0.',
},
ignore: ['/admin/passport/login'],
}
Expand Down

0 comments on commit d7a1505

Please sign in to comment.