mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-10-31 10:57:10 +08:00 
			
		
		
		
	ci: 调整部署脚本
This commit is contained in:
		
							
								
								
									
										8
									
								
								.github/workflows/deploy.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/deploy.yml
									
									
									
									
										vendored
									
									
								
							| @@ -41,7 +41,7 @@ jobs: | ||||
|           username: ${{ secrets.SERVER_USERNAME }} | ||||
|           password: ${{ secrets.SERVER_PASSWORD }} | ||||
|           source: ./dist/* | ||||
|           target: /docker/continew-admin/tmp | ||||
|           target: /tmp/html | ||||
|           strip_components: 1 | ||||
|       # 7、重启 Nginx | ||||
|       - name: Restart | ||||
| @@ -52,6 +52,6 @@ jobs: | ||||
|           username: ${{ secrets.SERVER_USERNAME }} | ||||
|           password: ${{ secrets.SERVER_PASSWORD }} | ||||
|           script: | | ||||
|             rm -rf /docker/continew-admin/html/* | ||||
|             mv /docker/continew-admin/tmp/* /docker/continew-admin/html | ||||
|             docker restart nginx | ||||
|             rm -rf ${{ secrets.SERVER_PATH }}/* | ||||
|             mv /tmp/html/* ${{ secrets.SERVER_PATH }} | ||||
|             chmod -R 777 ${{ secrets.SERVER_PATH }} | ||||
|   | ||||
| @@ -108,6 +108,7 @@ http.interceptors.response.use( | ||||
|       content: StatusCodeMessage[response.status] || '服务器暂时未响应,请刷新页面并重试。若无法解决,请联系管理员', | ||||
|       duration: 5 * 1000 | ||||
|     }) | ||||
|     console.log(response.status) | ||||
|     return Promise.reject(error) | ||||
|   } | ||||
| ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user