Compare commits

...

2 Commits

Author SHA1 Message Date
ed85918e7f maingate console은 이제 빌드 안함 2023-06-29 21:32:05 +09:00
c5ec99d3e1 mongoClient 변경 2023-06-29 21:31:51 +09:00
2 changed files with 1 additions and 19 deletions

View File

@ -237,7 +237,7 @@ func (sh *serviceDescription) prepare(mg *Maingate) error {
div.Maintenance.link = div.Maintenance.Notice
} else {
var fd FileDocumentDesc
if err := sh.mongoClient.FindOneAs(CollectionFile, bson.M{
if err := mg.mongoClient.FindOneAs(CollectionFile, bson.M{
"key": div.Maintenance.Notice,
}, &fd, options.FindOne().SetProjection(bson.M{"link": 1})); err != nil {
logger.Println(err)

View File

@ -4,24 +4,6 @@ $CurBranch = git branch --show-current
Remove-Item maingate.zip -Force -Recurse -ErrorAction SilentlyContinue
cd ..
cd maingate-console
git switch $CurBranch
git pull
npm install
npm run build
Remove-Item console -Force -Recurse -ErrorAction SilentlyContinue
Copy-Item build console -Recurse
Compress-Archive -Path console -DestinationPath ..\maingate\maingate.zip -Force
Remove-Item console -Force -Recurse
cd ..
cd maingate
$Env:GOOS="linux"
$Env:GOARCH="amd64"
go build -ldflags="-s -w" .