From ed229a2360dee69da91ce4d856fd66b50bd725ba Mon Sep 17 00:00:00 2001 From: Schneems Date: Sat, 7 Dec 2024 12:06:59 -0600 Subject: [PATCH 1/4] README --- README.md | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 177fc7657..635ec8836 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,44 @@ -# php-getting-started +# PHP Getting Started A barebones PHP app that makes use of the [Slim](https://www.slimframework.com/) web framework, which can easily be deployed to Heroku. -This application supports the [Getting Started with PHP on Heroku](https://devcenter.heroku.com/articles/getting-started-with-php) article - check it out. +This application supports the tutorials for both the [Cedar and Fir generations](https://devcenter.heroku.com/articles/generations) of the Heroku platform. You can check them out here: -## Deploying +- [Getting Started on Heroku with PHP](https://devcenter.heroku.com/articles/getting-started-with-php) +- [Getting Started on Heroku Fir with PHP](https://devcenter.heroku.com/articles/getting-started-with-php-fir) + +## Deploying to Heroku Using resources for this example app counts towards your usage. [Delete your app](https://devcenter.heroku.com/articles/heroku-cli-commands#heroku-apps-destroy) and [database](https://devcenter.heroku.com/articles/heroku-postgresql#removing-the-add-on) as soon as you are done experimenting to control costs. +### Deploy on Heroku [Cedar](https://devcenter.heroku.com/articles/generations#cedar) + By default, apps use Eco dynos if you are subscribed to Eco. Otherwise, it defaults to Basic dynos. The Eco dynos plan is shared across all Eco dynos in your account and is recommended if you plan on deploying many small apps to Heroku. Learn more about our low-cost plans [here](https://blog.heroku.com/new-low-cost-plans). Eligible students can apply for platform credits through our new [Heroku for GitHub Students program](https://blog.heroku.com/github-student-developer-program). -Install the [Heroku Toolbelt](https://toolbelt.heroku.com/). - -```sh -$ git clone git@github.com:heroku/php-getting-started.git # or clone your own fork +```text +$ git clone https://github.com/heroku/php-getting-started $ cd php-getting-started $ heroku create $ git push heroku main $ heroku open ``` -or +### Deploy on Heroku [Fir](https://devcenter.heroku.com/articles/generations#fir) -[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) +By default, apps on [Fir](https://devcenter.heroku.com/articles/generations#fir) use 1X-Classic dynos. To create an app on [Fir](https://devcenter.heroku.com/articles/generations#fir) you'll need to +[create a private space](https://devcenter.heroku.com/articles/working-with-private-spaces#create-a-private-space) +first. +```text +$ git clone https://github.com/heroku/php-getting-started +$ cd php-getting-started +$ heroku create --space +$ git push heroku main +$ heroku ps:wait +$ heroku open +``` ## Documentation For more information about using PHP on Heroku, see these Dev Center articles: From edbed71c06dceb5e1a0177486b21c57b555461de Mon Sep 17 00:00:00 2001 From: Schneems Date: Sat, 7 Dec 2024 12:13:45 -0600 Subject: [PATCH 2/4] Update nav --- views/nav.html | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/views/nav.html b/views/nav.html index 224b5e7c6..af73531b3 100644 --- a/views/nav.html +++ b/views/nav.html @@ -8,21 +8,38 @@ How Heroku Works +