Heroku Static Website Hosting

How to deploy static website to Heroku?

  • git clone https://github.com/heroku/php-getting-started.git
  • Replace contents of web/ with your static website.
  • Replace contents of composer.json with {}
  • Remove composer.lock
  • Save changes and do git commit.
  • heroku login -i
  • heroku create <app-name>
  • git push heroku main
  • heroku open