-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated package versions, simplified code, and improved file structure
In `JwtTokenService.cs`, the error message for an invalid refreshToken was updated and the log message for a successful refreshToken refresh was removed.
- Loading branch information
1 parent
4a76323
commit a6439c6
Showing
11 changed files
with
72 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
SERVER_NAME=lincms-web | ||
|
||
#判断是否存在webnotebook容器 | ||
docker ps | grep lincms-web &> /dev/null | ||
#如果不存在,则Remove | ||
if [ $? -ne 0 ] | ||
then | ||
echo "${SERVER_NAME} container not exist continue.. " | ||
else | ||
echo "remove ${SERVER_NAME} container" | ||
docker rm ${SERVER_NAME} -f | ||
fi | ||
|
||
docker images | grep registry.cn-hangzhou.aliyuncs.com/igeekfan/${SERVER_NAME} &> /dev/null | ||
|
||
if [ $? -ne 0 ] | ||
then | ||
echo "image does not exist , continue..." | ||
else | ||
echo "image exists !!! remove it" | ||
docker rmi --force registry.cn-hangzhou.aliyuncs.com/igeekfan/${SERVER_NAME} | ||
fi | ||
#从阿里云拉取刚刚push的镜像 | ||
docker pull registry.cn-hangzhou.aliyuncs.com/igeekfan/${SERVER_NAME} | ||
|
||
sudo docker run --restart \ | ||
unless-stopped \ | ||
-p 5011:8080 \ | ||
-v /var/www/lin-cms-dotnetcore/wwwroot/:/app/wwwroot:rw \ | ||
-v /var/www/lin-cms-dotnetcore/appsettings.Production.json/:/app/appsettings.Production.json:rw \ | ||
--privileged=true \ | ||
--name ${SERVER_NAME} \ | ||
-d registry.cn-hangzhou.aliyuncs.com/igeekfan/${SERVER_NAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters