diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-07-22 15:44:11 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-07-22 15:50:54 +0800 |
commit | 8182e0fd84acb318bf8a6864cfac876229eb55a9 (patch) | |
tree | cd8348d827adf1f3ccd769cf4dd053cfecce0bac /docs/pages/1 - Intro to Mill.md | |
parent | 57f4968e8c37c857e4c8d6cac80dca739186754d (diff) | |
download | mill-8182e0fd84acb318bf8a6864cfac876229eb55a9.tar.gz mill-8182e0fd84acb318bf8a6864cfac876229eb55a9.tar.bz2 mill-8182e0fd84acb318bf8a6864cfac876229eb55a9.zip |
0.2.50.2.5
tweak-readme
reduce polling frequency of BackgroundWrapper
Diffstat (limited to 'docs/pages/1 - Intro to Mill.md')
-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: |