Compare commits
2 commits
7fa685e862
...
d191577ac9
| Author | SHA1 | Date | |
|---|---|---|---|
| d191577ac9 | |||
| 4771bf45ac |
2 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,8 @@ Here are some of the common commands you may want to try right off the bat (asid
|
||||||
export MAKESHIFT_HOST=localhost
|
export MAKESHIFT_HOST=localhost
|
||||||
export MAKESHIFT_PATH=/test
|
export MAKESHIFT_PATH=/test
|
||||||
export MAKESHIFT_ROOT=./test
|
export MAKESHIFT_ROOT=./test
|
||||||
|
export MAKESHIFT_LOG_FILE=logs/makeshift.log
|
||||||
|
export MAKESHIFT_LOG_LEVEL=debug
|
||||||
```
|
```
|
||||||
|
|
||||||
Start the server. The `--init` flag with create the default files and directory to get started at the `--root` path.
|
Start the server. The `--init` flag with create the default files and directory to get started at the `--root` path.
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ var rootCmd = cobra.Command{
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
// try and set flags using env vars
|
// try and set flags using env vars
|
||||||
setenv(cmd, "log-file", "MAKESHIFT_LOG_FILE")
|
setenv(cmd, "log-file", "MAKESHIFT_LOG_FILE")
|
||||||
|
setenv(cmd, "log-level", "MAKESHIFT_LOG_LEVEL")
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
err := cmd.Help()
|
err := cmd.Help()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue