This is a Swift engine used to launch Swift apps on Nanobox.
To use the Swift engine, specify swift
as your engine
in your boxfile.yml
.
run.config:
engine: swift
When building your runtime, this engine compiles code by doing the following:
swift build --configuration release
This command can be modified using the build config option.
This engine exposes configuration options through the boxfile.yml, a YAML config file used to provision and configure your app's infrastructure when using Nanobox. This engine makes the following options available.
run.config:
engine: swift
engine.config:
# Swift settings
runtime: swift-4.0
build: 'swift build --configuration release'
Specifies which Swift runtime to use. The following runtimes are available:
- swift-4.0 (default)
run.config:
engine: swift
engine.config:
runtime: swift-4.0
Defines the command to run to compile your code in the build process.
run.config:
engine: swift
engine.config:
build: 'swift build'
- Write tests