https://github.com/codeadamca/heroku-deploy-html
A sample HTML webpage deployed to a Heroku App.
https://github.com/codeadamca/heroku-deploy-html
deployment heroku html php
Last synced: about 1 year ago
JSON representation
A sample HTML webpage deployed to a Heroku App.
- Host: GitHub
- URL: https://github.com/codeadamca/heroku-deploy-html
- Owner: codeadamca
- Created: 2023-03-09T18:27:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T21:37:09.000Z (over 1 year ago)
- Last Synced: 2025-01-26T22:25:40.363Z (over 1 year ago)
- Topics: deployment, heroku, html, php
- Language: HTML
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploying HTML to a Heroku App
> [!Note]
> Heroku no longer has a free plan. This process will still work but will not be free. The live links below have been deactivated to save cost.
This sample HTML has been deployed to a Heroku App. This sample HTML is available to view at [https://heroku-deploy-html.herokuapp.com/](https://heroku-deploy-html.herokuapp.com/).
1. Register for a [Heroku account](https://signup.heroku.com/) (you will have to add a payment method).
2. Go to your [Heroku dashboard](https://dashboard.heroku.com/) and create a new app. Give the app a name and choose a location. Click ```Create App```.
3. From what I have research, Heroku is not meant for deploying static HTML. We will deploy our static HTML page by telling Heroku that this is a simple PHP application. Create a new file named ```index.php```. In that file include the following code:
```php
```
4. Using Composer, create a new simple ```composer.json``` file. This can be done using the Terminal and ```composer init```, or creating a file names composer.json and adding the following code.
```json
{
"name": "thomasa/heroku-deploy-html",
"type": "project",
"authors": [
{
"name": "Adam",
"email": ""
}
],
"require": {}
}
```
5. Install the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)
***
## Repo Resources
* [Heroku](https://dashboard.heroku.com/)