Push rejectek while trying to deploy my vapor API using Heruko

I'm using a Mac Book Pro , vapor 4 and swift version 5.3.2
-----> Building on the Heroku-20 stack
-----> Swift app detected
-----> Using Swift 5.3.2 (from .swift-version file)
-----> Using built-in clang (Swift 5.3.2)
-----> Installing swiftenv
-----> Installing Swift 5.3.2
Downloading https://swift.org/builds/swift-5.3.2-release/ubuntu2004/swift-5.3.2-RELEASE/swift-5.3.2-RELEASE-ubuntu20.04.tar.gz
/tmp/swiftenv-5.3.2- /tmp/codon/tmp/buildpacks/66275d05cfaec82f8023e1ae68b013a22671c52f
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0:00:35 8826k
5.3.2 has been installed.
-----> Building package (release configuration)
swiftenv: version `5.3.2 ' (set by /tmp/build_d6ce87fd/.swift-version) is not installed
no such command: swift
! Push rejected, failed to compile Swift app.
! Push failed

What build pack are you using for Heroku?

1 Like

I choose a default buildpack while deploying my API created with Vapor .

Use the Vapor Community Heroku build pack GitHub - vapor-community/heroku-buildpack: Heroku buildpack for Swift

1 Like
Terms of Service

Privacy Policy

Cookie Policy