When I deployed the example TILApp to Vapor Cloud with a Postgresql database, I started receiving billing emails.
The book states p.82: “Note: The PostgreSQL database costs $7/month to use. However, you can try it out before you must configure a payment option in Vapor Cloud.”
Is there any configuration or setup to avoid this billing process while just experimenting with vapor cloud ?
@mixio unfortunately at the moment you only have the option of using SQLite for Vapor Cloud to keep the cost down. This does mean that you’ll lose any data which each deploy, which might not be an issue with experimenting.
There is an update to Vapor Cloud coming - Vapor Cloud 2 - which has free databases included (something like up to 1,000 rows or whatever the team decide). There’ll be a book update after this has been released.
@0xtim: Just had the same issue today. Is there any limitation on the book’s content if I change my database from PostgreSQL to SQLite? Since the book uses PostgreSQL.
Thank you!
Just to confirm, nope everything should work in SQLite just fine. The only thing to be wary of is that the app may get restarted occasionally, at which point you’ll lose your data. However for learning, this shouldn’t be an issue.
We’re currently working on the second edition of the book which will probably be released after Vapor Cloud 2 is out, which will provide some free DB features