diff --git a/spug_api/apps/account/management/commands/update.py b/spug_api/apps/account/management/commands/update.py index 4821792..f08cb97 100644 --- a/spug_api/apps/account/management/commands/update.py +++ b/spug_api/apps/account/management/commands/update.py @@ -76,4 +76,6 @@ class Command(BaseCommand): self.stdout.write(self.style.SUCCESS('''升级成功,请自行重启服务,如果通过官方文档安装一般重启命令为 Docker: docker restart spug Centos: systemctl restart supervisord - Ubuntu: systemctl restart supervisor''')) + Ubuntu: systemctl restart supervisor + ''')) + self.stderr.write(self.style.WARNING(f'最后别忘了刷新浏览器,确保系统设置/关于里的api与web版本一致哦~')) diff --git a/spug_api/spug/settings.py b/spug_api/spug/settings.py index c915888..48452b4 100644 --- a/spug_api/spug/settings.py +++ b/spug_api/spug/settings.py @@ -131,7 +131,7 @@ AUTHENTICATION_EXCLUDES = ( re.compile('/apis/.*'), ) -SPUG_VERSION = 'v3.0.1-beta.8' +SPUG_VERSION = 'v3.0.1-beta.9' # override default config try: diff --git a/spug_api/tools/migrate.py b/spug_api/tools/migrate.py index 337d8cc..aa7de5b 100644 --- a/spug_api/tools/migrate.py +++ b/spug_api/tools/migrate.py @@ -17,7 +17,7 @@ import os if __name__ == '__main__': version = sys.argv[1] - if version <= 'v3.0.1-beta.8': + if version <= 'v3.0.2': old_path = os.path.join(settings.BASE_DIR, 'repos') new_path = os.path.join(settings.REPOS_DIR) if not os.path.exists(new_path): diff --git a/spug_web/src/libs/index.js b/spug_web/src/libs/index.js index 9ab9e5f..e8324f1 100644 --- a/spug_web/src/libs/index.js +++ b/spug_web/src/libs/index.js @@ -10,4 +10,4 @@ export * from './functools'; export * from './router'; export const http = _http; export const history = _history; -export const VERSION = 'v3.0.1-beta.8'; +export const VERSION = 'v3.0.1-beta.9';