Skip to content

Commit

Permalink
Update default Swift version to 4.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vzsg committed May 6, 2019
1 parent b12cda2 commit dfb9726
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $ git push heroku master
remote: -----> Swift app detected
remote: -----> Installing clang 5.0.0
remote: -----> Installing swiftenv
remote: -----> Installing Swift 4.2.2
remote: -----> Installing Swift 4.2.4
remote: -----> Building package (release configuration)
remote: -----> Installing dynamic libraries
remote: -----> Installing binaries
Expand All @@ -43,20 +43,18 @@ Example Procfile for Vapor 2 apps:
web: Run --env=production --port=$PORT
```

Example Procfile for Vapor 3 apps (Swift 4.1 or higher required):
Example Procfile for Vapor 3 apps:

```
web: Run serve --env production --hostname 0.0.0.0 --port $PORT
```

### Specify a Swift version

You can also customise the version of Swift used with a `.swift-version` file
in your repository:
The buildpack defaults to Swift 4.2.4 to maintain compatibility with Swift 3 projects. If you want to use the latest and greatest, or need a specific version – including snapshots, create a file called `.swift-version` in the root of the project folder with the desired version number inside.

```shell
$ cat .swift-version
4.2.2
$ echo '5.0.1' > .swift-version
```

The `.swift-version` file is completely compatible with
Expand Down
2 changes: 1 addition & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ BUILD_DIR=$1
CACHE_DIR=$2
ENV_DIR=$3

DEFAULT_SWIFT_VERSION="4.2.2"
DEFAULT_SWIFT_VERSION="4.2.4"

CLANG_VERSION=7.0.1
SWIFT_BUILD_CONFIGURATION="release"
Expand Down

0 comments on commit dfb9726

Please sign in to comment.