diff --git a/.dockerignore b/.dockerignore index 3dd2b76..7518f8d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -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 diff --git a/.gitignore b/.gitignore index 051520a..3f81e26 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/components/main.go b/components/bootstrap.go similarity index 98% rename from components/main.go rename to components/bootstrap.go index e5594cd..445e45b 100644 --- a/components/main.go +++ b/components/bootstrap.go @@ -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) diff --git a/components/config.yaml b/config.yaml.sample similarity index 61% rename from components/config.yaml rename to config.yaml.sample index b014ec1..dff2179 100644 --- a/components/config.yaml +++ b/config.yaml.sample @@ -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 diff --git a/main.go b/main.go new file mode 100644 index 0000000..261812c --- /dev/null +++ b/main.go @@ -0,0 +1,7 @@ +package main + +import "github.com/reiver/greatape/components" + +func main() { + components.Run() +}