前后端分端口部署
This commit is contained in:
parent
971d77e9ab
commit
1a5ce792fe
|
@ -2,7 +2,7 @@
|
|||
ENV = 'development'
|
||||
|
||||
# base api
|
||||
VUE_APP_BASE_API = '/api'
|
||||
VUE_APP_BASE_API = 'http://localhost:8000'
|
||||
|
||||
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
|
||||
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
|
||||
|
|
|
@ -3,4 +3,4 @@ ENV = 'production'
|
|||
|
||||
# base api
|
||||
# VUE_APP_BASE_API = '/prod-api'
|
||||
VUE_APP_BASE_API = '/api'
|
||||
VUE_APP_BASE_API = 'https://apitest.ctcshe.com'
|
||||
|
|
|
@ -24,15 +24,15 @@ from utils.file import UploadFileView
|
|||
|
||||
|
||||
urlpatterns = [
|
||||
path('api/rbac/', include('rbac.urls')),
|
||||
path('api/crm/', include('crm.urls')),
|
||||
path('api/question/', include('question.urls')),
|
||||
path('api/examtest/', include('examtest.urls')),
|
||||
path('api/token/', obtain_jwt_token),
|
||||
path('api/token/refresh/', refresh_jwt_token),
|
||||
path('api/token/verify/', verify_jwt_token),
|
||||
path('api/token/remove/', UserLogoutView.as_view()),
|
||||
path('api/uploadfile/', UploadFileView.as_view()),
|
||||
path('rbac/', include('rbac.urls')),
|
||||
path('crm/', include('crm.urls')),
|
||||
path('question/', include('question.urls')),
|
||||
path('examtest/', include('examtest.urls')),
|
||||
path('token/', obtain_jwt_token),
|
||||
path('token/refresh/', refresh_jwt_token),
|
||||
path('token/verify/', verify_jwt_token),
|
||||
path('token/remove/', UserLogoutView.as_view()),
|
||||
path('uploadfile/', UploadFileView.as_view()),
|
||||
path('admin/', admin.site.urls),
|
||||
path('docs/', include_docs_urls(title="API文档",authentication_classes=[], permission_classes=[])),
|
||||
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
|
Loading…
Reference in New Issue