Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Full-Stack Development with Swift

You're reading from   Hands-On Full-Stack Development with Swift Develop full-stack web and native mobile applications using Swift and Vapor

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781788625241
Length 356 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ankur Patel Ankur Patel
Author Profile Icon Ankur Patel
Ankur Patel
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Getting Started with Server Swift FREE CHAPTER 2. Creating the Native App 3. Getting Started with Vapor 4. Configuring Providers, Fluent, and Databases 5. Building a REST API using Vapor 6. Consuming API in App 7. Creating Web Views and Middleware 8. Testing and CI 9. Deploying the App 10. Adding Authentication 11. Building a tvOS App 12. Other Books You May Enjoy

Deploying to Heroku


Heroku is a Platform as a Service provider that lets you deploy apps of multiple platforms on their servers. Basically, Heroku hosts server apps in such a way that you can scale them horizontally by launching multiple replicas of your app or vertically, by scaling the hardware spec such as increasing memory, CPU, or disk space. This allows you to start out small and help you run your app elegantly without having to worry about all the infrastructure that you need to configure, set up, and maintain a MongoDB server or load balancer.

Deploying is easy as well. It is as simple as pushing code using git. The magic of how it builds and runs the app is in the build packs, which are written by the Heroku team and sometimes by the community; they let you build and run the app on the server without having to write your own deployment scripts. This build pack needs to be added for our Vapor app and Vapor toolbox has a handle script to automate all of this for us, making it a lot...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image