To build and run the application:
swift build
.build/debug/Run
The iterative-dev.sh
script is included in the root of the generated Swift project and allows for fast & easy iterations for the developer. Instead of stopping the running Kitura server to see new code changes, while the script is running, it will automatically detect changes in the project's .swift files and recompile the app accordingly.
To use iterative development:
- For native OS, execute the
./iterative-dev.sh
script from the root of the project. - With docker, shell into the tools container mentioned above, and run the
./swift-project/iterative-dev.sh
script. File system changes are detected using a low-tech infinitely looping poll mechanism, which works in both local OS/filesystem and across host OS->Docker container volume scenarios.