Compare commits

...

2 commits

4 changed files with 16 additions and 5 deletions

View file

@ -27,7 +27,7 @@ Here are some of the common commands you may want to try right off the bat (asid
```bash
export MAKESHIFT_HOST=localhost
export MAKESHIFT_PATH=/test
export MAKESHIFT_SERVER_ROOT=./test
export MAKESHIFT_ROOT=./test
```
Start the server. The `--init` flag with create the default files and directory to get started at the `--root` path.

View file

@ -4,7 +4,18 @@ import "github.com/spf13/cobra"
var runCmd = &cobra.Command{
Use: "run",
Short: "Run 'makeshift' locally with plugins",
Example: `
# set up environment
export MAKESHIFT_HOST=http://localhost:5050
export MAKESHIFT_PATH=help.txt
export MAKESHIFT_ROOT=./test
# run locally similar to 'download'
makeshift run --plugins jinja2 --profiles default
makeshift run --root ./test -p help.txt --plugins jinja2 --profiles default
`,
Args: cobra.NoArgs,
Short: "Run locally with plugins and profiles",
Run: func(cmd *cobra.Command, args []string) {
},

View file

@ -21,7 +21,7 @@ var serveCmd = &cobra.Command{
Args: cobra.NoArgs,
PreRun: func(cmd *cobra.Command, args []string) {
setenv(cmd, "host", "MAKESHIFT_HOST")
setenv(cmd, "root", "MAKESHIFT_SERVER_ROOT")
setenv(cmd, "root", "MAKESHIFT_ROOT")
setenv(cmd, "timeout", "MAKESHIFT_TIMEOUT")
},
Run: func(cmd *cobra.Command, args []string) {

View file

@ -33,7 +33,7 @@ const (
# setup environment variables</br>
export MAKESHIFT_HOST={{ makeshift.profiles.default.data.host }}</br>
export MAKESHIFT_PATH={{ makeshift.profiles.default.data.path }}</br>
export MAKESHIFT_SERVER_ROOT={{ makeshift.profiles.default.data.server_root }}</br></br>
export MAKESHIFT_ROOT={{ makeshift.profiles.default.data.server_root }}</br></br>
# start the service</br>
makeshift serve --root ./tests --init -l debug</br></br>