Posts

Showing posts with the label heroku

Heroku Postgres in PHP: Quick Start

"Heroku Postgres is a managed SQL database service provided directly by Heroku ( https://devcenter.heroku.com/articles/heroku-postgresql ). In this post, I am going to use Heroku Postgres in PHP. create app % mkdir heroku && cd heroku % touch index.php % git init % git add . % git commit -am 'init' % heroku create % heroku apps add database Confirm "No add-ons" yet. % heroku addons Add database as a free plan. % heroku addons:create heroku-postgresql:hobby-dev % heroku pg:info === DATABASE_URL Plan:                  Hobby-dev Status:                Available Connections:           0/20 PG Version:            13.2 Created:               2021-05-08 00:45 UTC Data Size:             7.9 MB Tables:                0 Rows:  ...

Heroku: Hello World in PHP using Toolbelt

Image
This post describes how to deploy a sample PHP application on Heroku using the CLI tool. what is Heroku "Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud" ( https://www.heroku.com/ ) register account 1. https://www.heroku.com/ > sign up > ... > create free account 2. [your email] > click activation link > set password 3. https://dashboard.heroku.com/ > accept terms & conditions setup Toolbelt (CLI tool for Heroku) % brew tap heroku/brew && brew install heroku % heroku update % heroku version             heroku/7.53.0 darwin-x64 node-v12.21.0 % heroku login heroku: Press any key to open up the browser to login or q to exit: ... Logging in... done see https://devcenter.heroku.com/articles/heroku-cli for more detail prepare project % mkdir heroku % cd heroku % vim index.php <?php echo "Hello, World!" ; % git init % git add . % git commit -am ...

List of Major Computing Services on AWS, GCP, and Azure

Here are some of the major services for cloud computing:  AWS GCP Azure other FaaS Lambda Cloud Functions Azure Functions k8s EKS GKE AKS PaaS Elastic Beanstalk GAE App Service Heroku IaaS EC2 GCE Virtual Machine Note: each hyperlink is for the related post in this blog. Pricing: Each provider/service has a free trial option under limited usage. They are categorized into Few-months Free or Always Free . FaaS and PaaS tends to have more Alway Free options, probably because of higher chances of vendor lock-in. The k8s services provide the control plains which are free or very cheap, but you need to pay for the worker nodes.