Chapter 26: Deploying with Heroku

i got this error after follow tut. what wrong? i was tried many times., @0xtim please take a look…

… remote: Building Swift

remote: This may take a very long time…

remote: Building Swift failed

remote: Check out the logfile for more information: /app/tmp/cache/heroku-18/swiftenv/tmp/swiftenv-build-4.1/swiftenv-build.20190224095509.185.log

remote: You can inspect or delete the working tree at: /app/tmp/cache/heroku-18/swiftenv/tmp/swiftenv-build-4.1

remote: ! Push rejected, failed to compile Swift app.

remote:

remote: ! Push failed

remote: Verifying deploy…

remote:

remote: ! Push rejected to xoa.

remote:

To https://git.heroku.com/xoa.git

! [remote rejected] master -> master (pre-receive hook declined)

error: failed to push some refs to ‘https://git.heroku.com/xoa.git

Is that the full output? There’s normally more in the logs about what exactly went wrong. Which build pack are you using?

Im using the this build pack from the book
heroku buildpacks:set GitHub - vapor-community/heroku-buildpack: Heroku buildpack for Swift

full LOG

-----> Swift app detected
-----> Installing clang 7.0.1
-----> Installing swiftenv
-----> Installing Swift 4.1
Downloading swift (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Downloading swift-llvm (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Downloading swift-clang (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Downloading swift-lldb (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Downloading swift-cmark (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Downloading swift-llbuild (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Downloading swift-package-manager (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Downloading swift-compiler-rt (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Downloading swift-corelibs-xctest (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Downloading swift-corelibs-foundation (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Downloading swift-corelibs-libdispatch (swift-4.1-RELEASE)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
Building Swift
This may take a very long time...
Building Swift failed
Check out the logfile for more information: /app/tmp/cache/heroku-18/swiftenv/tmp/swiftenv-build-4.1/swiftenv-build.20190224095509.185.log
You can inspect or delete the working tree at: /app/tmp/cache/heroku-18/swiftenv/tmp/swiftenv-build-4.1
 !     Push rejected, failed to compile Swift app.
 !     Push failed

@choioi as luck would have it, a new version of the book has been released today! Do you want to see if that updated chapter solves your problem?

Thanks @0xtim, i’ll check it

yeah after look at page 453. i was change back heroku16 and it work OK.

1 Like