This commit is contained in:
shaoyongjun 2024-08-18 21:33:15 +08:00
parent 67217d1dd8
commit ff4259c6be
2 changed files with 2 additions and 1 deletions

View File

@ -79,6 +79,7 @@ func main() {
go func() {
if err := e.Start(":8080"); err != nil && err != http.ErrServerClosed {
fmt.Println("shutting down the server")
panic(err)
}
}()

View File

@ -15,7 +15,7 @@ job "${APP_NAME}-${CI_COMMIT_BRANCH}-job" {
task "${APP_NAME}-${CI_COMMIT_BRANCH}-task" {
driver = "docker"
resources {
cpu = 50 # 50 MHz
cpu = 100 # 50 MHz
memory = 100 # 100 MB
}