mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 21:49:52 +00:00
feat: reamdme里面的源码启动命令已经失效,因为ui/dist不在代码仓库中管理
This commit is contained in:
parent
4e86c1eb45
commit
ea4bcb4aaf
3
Makefile
3
Makefile
@ -35,3 +35,6 @@ help:
|
|||||||
@echo " make help - 显示此帮助信息"
|
@echo " make help - 显示此帮助信息"
|
||||||
|
|
||||||
.PHONY: all build clean help
|
.PHONY: all build clean help
|
||||||
|
|
||||||
|
local.run:
|
||||||
|
go mod vendor&& npm --prefix ./ui install && npm --prefix ./ui run build && go run main.go serve
|
||||||
|
@ -55,8 +55,7 @@ mkdir -p ~/.certimate && cd ~/.certimate && curl -O https://raw.githubuserconten
|
|||||||
```bash
|
```bash
|
||||||
git clone EMAIL:usual2970/certimate.git
|
git clone EMAIL:usual2970/certimate.git
|
||||||
cd certimate
|
cd certimate
|
||||||
go mod vendor
|
make local.run
|
||||||
go run main.go serve
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## 二、使用
|
## 二、使用
|
||||||
|
@ -54,8 +54,7 @@ mkdir -p ~/.certimate && cd ~/.certimate && curl -O https://raw.githubuserconten
|
|||||||
```bash
|
```bash
|
||||||
git clone EMAIL:usual2970/certimate.git
|
git clone EMAIL:usual2970/certimate.git
|
||||||
cd certimate
|
cd certimate
|
||||||
go mod vendor
|
make local.run
|
||||||
go run main.go serve
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
6
main.go
6
main.go
@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/usual2970/certimate/ui"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
@ -16,6 +15,7 @@ import (
|
|||||||
"github.com/usual2970/certimate/internal/domains"
|
"github.com/usual2970/certimate/internal/domains"
|
||||||
"github.com/usual2970/certimate/internal/routes"
|
"github.com/usual2970/certimate/internal/routes"
|
||||||
"github.com/usual2970/certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
|
"github.com/usual2970/certimate/ui"
|
||||||
|
|
||||||
_ "time/tzdata"
|
_ "time/tzdata"
|
||||||
)
|
)
|
||||||
@ -46,6 +46,10 @@ func main() {
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
defer log.Println("Exit!")
|
||||||
|
go func() {
|
||||||
|
log.Println("Visit the website:", "http://127.0.0.1:8090")
|
||||||
|
}()
|
||||||
|
|
||||||
if err := app.Start(); err != nil {
|
if err := app.Start(); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user