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 .ionide
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,intellij+all,goland+all,go,node,macos # 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 .ionide
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,intellij+all,goland+all,go,node,macos # 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 ( import (
"flag" "flag"
@ -20,7 +20,7 @@ import (
var configFilePath = flag.String("config", "config.yaml", "Configuration File Path") var configFilePath = flag.String("config", "config.yaml", "Configuration File Path")
func main() { func Run() {
flag.Parse() flag.Parse()
if !core.Dockerized { if !core.Dockerized {
runtime.GOMAXPROCS(10) runtime.GOMAXPROCS(10)

Wyświetl plik

@ -2,8 +2,8 @@ environment: development
server: server:
protocol: http protocol: http
fqdn: localhost fqdn: localhost
hash_key: 'OKq2gLmDCYJXnPweKrM=l7dFCDxp5Ff5EupcQCU' hash_key: '---INSERT-YOUR-HASH-KEY---'
block_key: 'v1K1s+S3vWudrypR' block_key: '---INSERT-YOUR-BLOCK-KEY---'
mysql: mysql:
database: greatape database: greatape
username: root 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()
}