{"id":26871276,"url":"https://github.com/codeadamca/heroku-deploy-html","last_synced_at":"2025-03-31T07:18:58.242Z","repository":{"id":132021821,"uuid":"611881577","full_name":"codeadamca/heroku-deploy-html","owner":"codeadamca","description":"A sample HTML webpage deployed to a Heroku App.","archived":false,"fork":false,"pushed_at":"2025-01-26T21:37:09.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T22:25:40.363Z","etag":null,"topics":["deployment","heroku","html","php"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeadamca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-09T18:27:19.000Z","updated_at":"2025-01-26T21:37:13.000Z","dependencies_parsed_at":"2024-02-24T19:29:07.698Z","dependency_job_id":"679b7de5-3277-41b7-b626-30f849ce1b50","html_url":"https://github.com/codeadamca/heroku-deploy-html","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Fheroku-deploy-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Fheroku-deploy-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Fheroku-deploy-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Fheroku-deploy-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeadamca","download_url":"https://codeload.github.com/codeadamca/heroku-deploy-html/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429486,"owners_count":20775809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployment","heroku","html","php"],"created_at":"2025-03-31T07:18:57.563Z","updated_at":"2025-03-31T07:18:58.223Z","avatar_url":"https://github.com/codeadamca.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploying HTML to a Heroku App\n\n\u003e [!Note]  \n\u003e 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. \n\nThis 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/).\n\n1. Register for a [Heroku account](https://signup.heroku.com/) (you will have to add a payment method).\n2. 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```.\n3. 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:\n\n    ```php\n    \u003c?php include('index.html'); ?\u003e\n    ```\n\n4. 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. \n\n    ```json\n    {\n        \"name\": \"thomasa/heroku-deploy-html\",\n        \"type\": \"project\",\n        \"authors\": [\n            {\n                \"name\": \"Adam\",\n                \"email\": \"\"\n            }\n        ],\n        \"require\": {}\n    }\n    ```\n\n5. Install the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)\n\n***\n\n## Repo Resources\n\n* [Heroku](https://dashboard.heroku.com/)\n\n\u003cbr\u003e\n\u003ca href=\"https://codeadam.ca\"\u003e\n\u003cimg src=\"https://cdn.codeadam.ca/images@1.0.0/codeadam-logo-coloured-horizontal.png\" width=\"200\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeadamca%2Fheroku-deploy-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeadamca%2Fheroku-deploy-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeadamca%2Fheroku-deploy-html/lists"}