mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 07:15:25 +00:00
Update main.go
This commit is contained in:
@@ -16,7 +16,10 @@ import (
|
|||||||
"github.com/stoewer/go-strcase"
|
"github.com/stoewer/go-strcase"
|
||||||
)
|
)
|
||||||
|
|
||||||
const postContentPath = "docs/hugo-tania/site/content/post"
|
const (
|
||||||
|
postContentPath = "docs/hugo-tania/site/content/post"
|
||||||
|
docsURL = "services.m3o.com"
|
||||||
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
files, err := ioutil.ReadDir(os.Args[1])
|
files, err := ioutil.ReadDir(os.Args[1])
|
||||||
@@ -26,7 +29,7 @@ func main() {
|
|||||||
workDir, _ := os.Getwd()
|
workDir, _ := os.Getwd()
|
||||||
|
|
||||||
docPath := filepath.Join(workDir, "docs")
|
docPath := filepath.Join(workDir, "docs")
|
||||||
err = ioutil.WriteFile(filepath.Join(docPath, "CNAME"), []byte("services.m3o.com"), 0777)
|
err = ioutil.WriteFile(filepath.Join(docPath, "CNAME"), []byte(docsURL), 0777)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Failed to CNAME")
|
fmt.Printf("Failed to CNAME")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user