Skip to content

Commit

Permalink
update djangblog
Browse files Browse the repository at this point in the history
  • Loading branch information
anycodes committed Dec 7, 2021
1 parent e432e7e commit 1251d25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/django-blog/hook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ async function postInit(inputObj) {
* Operation error: ImportError: cannot import name 'metadata' from 'importlib', you can refer to: https://stackoverflow.com/questions/59216175/importerror-cannot-import-name-metadata-from-importlib
* Default information:
* Admin:/admin
* Default Admin Username: blog
* Default Admin Password: myblog12345!
* Default Admin Username: django
* Default Admin Password: djangoblog
\n`)
}

Expand Down
2 changes: 1 addition & 1 deletion example/django-blog/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: django-blog
Provider:
- 阿里云
Version: 0.1.1
Version: 0.1.2
Description: 基于Django框架的博客系统
HomePage: https://github.com/devsapp/native-runtime-framework-example
Tags:
Expand Down
3 changes: 3 additions & 0 deletions example/django-blog/src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ services:
pre-deploy: # 在deploy之前运行
- run: pip3 install -r requirements.txt -t . # 要运行的命令行
path: ./code # 命令行运行的路径
post-deploy: # 在deploy之前运行
- run: s nas upload ./db.sqlite3 /mnt/auto # 要运行的命令行
path: ./ # 命令行运行的路径
props: # 组件的属性值
region: cn-beijing
service:
Expand Down

0 comments on commit 1251d25

Please sign in to comment.