Swiftpack.co - vapor/toolbox as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by vapor.
vapor/toolbox 18.3.6
Simplifies common command line tasks when using Vapor
⭐️ 230
🕓 9 weeks ago
.package(url: "https://github.com/vapor/toolbox.git", from: "18.3.6")

Vapor Toolbox

Documentation Team Chat MIT License Continuous Integration via GitHub Swift 5.2


Stars: 230
Last commit: Yesterday
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Remove backslash from Procfile created by `vapor heroku init`
9 weeks ago
This patch was authored by @e28eta and released by @0xTim.

Running vapor heroku init, and choosing to use the buildpack (vs docker), creates a Procfile with the following:

web: Run serve --env production --hostname --port \$PORT

This works okay when deployed to heroku (note the --port \4386):

2022-03-08T07:07:33.775125+00:00 heroku[web.1]: Starting process with command `Run serve --env production --hostname --port \4386`
2022-03-08T07:07:35.820116+00:00 app[web.1]: [ NOTICE ] Server starting on

However, it doesn't work when using the heroku local command:

$ heroku local
10:54:26 PM web.1 |  [1/1] Planning build
10:54:31 PM web.1 |  [0/0] Build complete!
10:54:31 PM web.1 |  [ WARNING ] Could not convert option for `port` to Int
10:54:31 PM web.1 |  Swift/ErrorType.swift:200: Fatal error: Error raised at top level: .invalidOptionType("port", type: Int)
[DONE] Killing all processes with signal  SIGILL
10:54:31 PM web.1 Exited with exit code SIGILL

This PR removes the backslash. The new Procfile contents are simply:

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

I've verified this works with heroku remote & local.

2022-03-08T07:18:31.543631+00:00 heroku[web.1]: Starting process with command `Run serve --env production --hostname --port 32664`
2022-03-08T07:18:32.671361+00:00 app[web.1]: [ NOTICE ] Server starting on
2022-03-08T07:18:33.310530+00:00 heroku[web.1]: State changed from starting to up
2022-03-08T07:19:57.000000+00:00 app[api]: Build succeeded

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics