Skip to content

Deploy customization

Jonas Schwartz edited this page Apr 18, 2018 · 1 revision

cloud.yml

Currently supported are:

  • swiftVersion

e.g.:

swiftVersion: "4.1.0"

Hooks

Build hooks are just plain bash files, and can be used to customize the deploy process. Hooks should be placed in a folder called hooks in the project root The following hooks can be used:

hooks/run.sh

Used to customize the run command e.g.:

#!/bin/bash
./MyExecutable serve --hostname 0.0.0.0 --port 8080

hooks/build.sh

Used to customize the build command e.g.:

#!/bin/bash
swift build -c release

NB It's Currently only possible to build in release mode