Skip to content

jayjun/nanobox-engine-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift

This is a Swift engine used to launch Swift apps on Nanobox.

Usage

To use the Swift engine, specify swift as your engine in your boxfile.yml.

run.config:
  engine: swift

Build Process

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.

Configuration Options

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.

Overview of Boxfile Configuration Options

run.config:
  engine: swift
  engine.config:
    # Swift settings
    runtime: swift-4.0
    build: 'swift build --configuration release'

runtime

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

build

Defines the command to run to compile your code in the build process.

run.config:
  engine: swift
  engine.config:
    build: 'swift build'

TODO

  • Write tests

About

Engine for running Swift apps on Nanobox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages