Add serve command.
This commit is contained in:
parent
76308dc9a9
commit
ad5d10979d
@ -14,9 +14,10 @@ Synopsis: `isidore <command> [options]`
|
|||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
|
|
||||||
- `new <dir> <name>`: create a new project directory `<dir>` with project name
|
- `new [-i] <dir>`: create a new project directory `<dir>`. Use `-i` for
|
||||||
`<name>`.
|
interactive mode.
|
||||||
- `build`: build the website (default).
|
- `build`: build the website (default).
|
||||||
|
- `serve`, `server`: run an HTTP server of the output on port 8080.
|
||||||
- `clean`: cleans build files.
|
- `clean`: cleans build files.
|
||||||
- `help`: show help information.
|
- `help`: show help information.
|
||||||
- `version`: show Isidore version number.
|
- `version`: show Isidore version number.
|
||||||
|
@ -90,6 +90,8 @@ function print_help()
|
|||||||
Create a new Isidore project (use interactive mode with '-i')
|
Create a new Isidore project (use interactive mode with '-i')
|
||||||
build
|
build
|
||||||
Build the project rooted in the current directory
|
Build the project rooted in the current directory
|
||||||
|
serve | server
|
||||||
|
Serve a local HTTP server of the output directory on port 8080
|
||||||
clean
|
clean
|
||||||
Clean the built files
|
Clean the built files
|
||||||
version
|
version
|
||||||
@ -219,6 +221,8 @@ case $1 in
|
|||||||
new_project $NEW_DIR $INTERACTIVE;;
|
new_project $NEW_DIR $INTERACTIVE;;
|
||||||
build)
|
build)
|
||||||
build_project;;
|
build_project;;
|
||||||
|
serve|server)
|
||||||
|
php -S localhost:8080 -t ./output/;;
|
||||||
clean)
|
clean)
|
||||||
clean_project;;
|
clean_project;;
|
||||||
help)
|
help)
|
||||||
|
Loading…
Reference in New Issue
Block a user