The Vapor team has done a great job of integrating Heroku into the Vapor toolbox. We can initialize a Procfile, add the Vapor build pack, and set up a git remote for Heroku to push to, all using one command. A Procfile is basically a file where we can specify all the processes we want to run; for our Vapor app, we will be creating one web process only that will run our Vapor app. Heroku uses build packs, which are a list of scripts, to build and run the app on the server. Vapor build pack is basically what we need to get our app to deploy to Heroku. Finally, a new Heroku git remote needs to be configured, so that we can push to that remote with our master branch to start the deployment. Basically, ...
Configuring and deploying Vapor to Heroku
Get Hands-On Full-Stack Development with Swift now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.