vaulterm/server/main.go

19 lines
182 B
Go
Raw Normal View History

2024-11-05 18:43:59 +07:00
package main
2024-11-06 06:24:14 +00:00
import (
2024-11-06 13:49:41 +00:00
"os"
2024-11-06 06:24:14 +00:00
2024-11-07 19:07:41 +00:00
"rul.sh/vaulterm/app"
2024-11-06 06:24:14 +00:00
)
2024-11-06 09:50:41 +00:00
func main() {
2024-11-07 19:07:41 +00:00
app := app.NewApp()
2024-11-06 06:24:14 +00:00
2024-11-07 19:07:41 +00:00
port := os.Getenv("PORT")
if port == "" {
port = "3000"
2024-11-06 13:49:41 +00:00
}
2024-11-07 19:07:41 +00:00
app.Listen(":" + port)
2024-11-05 18:43:59 +07:00
}