Vapor cloud starts sending billing emails when deploying TILApp with a Postgresql database

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 ?

1 Like

@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 thanks for the reply.
Do you know if vapor-alpha https://vaporcloud.zendesk.com/hc/en-us/articles/115003488313-Getting-started-with-CLI is already usable and could be used to deploy the book examples ?

@mixio yes it should be possible, though I’m a little unsure on the DB state. Best bet is to head to Vapor’s Discord and ask in the #cloud2 channel

@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!

@luciano.sky: That’s what I did. I converted all the book projects to SQLite and it worked just fine without any billing in Vapor Cloud.

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