feat(components): add bootstrap

master
Xeronith 2023-04-28 11:56:51 +03:30
rodzic 7fcf6066d0
commit d9d1c26bd5
5 zmienionych plików z 15 dodań i 4 usunięć

Wyświetl plik

@ -366,3 +366,5 @@ __debug_bin
.ionide
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,intellij+all,goland+all,go,node,macos
config.yaml

2
.gitignore vendored
Wyświetl plik

@ -367,3 +367,5 @@ __debug_bin
.ionide
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,intellij+all,goland+all,go,node,macos
config.yaml

Wyświetl plik

@ -1,4 +1,4 @@
package main
package components
import (
"flag"
@ -20,7 +20,7 @@ import (
var configFilePath = flag.String("config", "config.yaml", "Configuration File Path")
func main() {
func Run() {
flag.Parse()
if !core.Dockerized {
runtime.GOMAXPROCS(10)

Wyświetl plik

@ -2,8 +2,8 @@ environment: development
server:
protocol: http
fqdn: localhost
hash_key: 'OKq2gLmDCYJXnPweKrM=l7dFCDxp5Ff5EupcQCU'
block_key: 'v1K1s+S3vWudrypR'
hash_key: '---INSERT-YOUR-HASH-KEY---'
block_key: '---INSERT-YOUR-BLOCK-KEY---'
mysql:
database: greatape
username: root

7
main.go 100644
Wyświetl plik

@ -0,0 +1,7 @@
package main
import "github.com/reiver/greatape/components"
func main() {
components.Run()
}