Sample Vapor/Heroku Project with Request calls in the Routes handler.
This was originally generated using the Vapor Toolbox and edited using Xcode.
- Added Heroku Procfile, as autogenerated by Vapor Toolbox.
- Set Heroku Buildpack to: https://github.com/vapor-community/heroku-buildpack.
- Added Heroku remote Git repo link.
- Currently Heroku's Vapor Buildpack requires LinuxMain.swift to build. This can be worked around by adding the SWIFT_BUILD_FLAGS Env Var.
echo "web: Run serve --env production --hostname 0.0.0.0 --port \$PORT" > Procfile
heroku config:set SWIFT_BUILD_FLAGS="--enable-test-discovery"
heroku git:remote -a hellovaporhk