diff options
Diffstat (limited to 'docs/pages')
-rw-r--r-- | docs/pages/1 - Intro to Mill.md | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/docs/pages/1 - Intro to Mill.md b/docs/pages/1 - Intro to Mill.md index 439e80e5..b8f4ea23 100644 --- a/docs/pages/1 - Intro to Mill.md +++ b/docs/pages/1 - Intro to Mill.md @@ -36,7 +36,7 @@ pacaur -S mill ### Windows To get started, download Mill from: -https://github.com/lihaoyi/mill/releases/download/0.2.4/0.2.4, and save it as +https://github.com/lihaoyi/mill/releases/download/0.2.5/0.2.5, and save it as `mill.bat`. If you're using [Scoop](https://scoop.sh) you can install Mill via @@ -73,7 +73,7 @@ To get started, download Mill and install it into your system via the following `curl`/`chmod` command: ```bash -sudo sh -c '(echo "#!/usr/bin/env sh" && curl -L https://github.com/lihaoyi/mill/releases/download/0.2.4/0.2.4) > /usr/local/bin/mill && chmod +x /usr/local/bin/mill' +sudo sh -c '(echo "#!/usr/bin/env sh" && curl -L https://github.com/lihaoyi/mill/releases/download/0.2.5/0.2.5) > /usr/local/bin/mill && chmod +x /usr/local/bin/mill' ``` ### Development Releases @@ -141,6 +141,8 @@ $ mill foo.compile # compile sources into classfiles $ mill foo.run # run the main method, if any +$ mill foo.runBackground # run the main method in the background + $ mill foo.launcher # prepares a foo/launcher/dest/run you can run later $ mill foo.jar # bundle the classfiles into a jar @@ -314,12 +316,23 @@ the task as necessary when the inputs change: ```bash $ mill --watch foo.compile $ mill --watch foo.run +$ mill -w foo.compile +$ mill -w foo.run ``` Mill's `--watch` flag watches both the files you are building using Mill, as well as Mill's own `build.sc` file and anything it imports, so any changes to your `build.sc` will automatically get picked up. +For long-running processes like web-servers, you can use `.runBackground` to +make sure they re-compile and re-start when code changes, forcefully terminating +the previous process even though it may be still alive: + +```bash +$ mill -w foo.compile +$ mill -w foo.runBackground +``` + ## Command-line Tools Mill comes built in with a small number of useful command-line utilities: |