How to deploy a Simple Static HTML Website on Heroku

Heroku image
 C:\projects \Constech> mv index.html home.html
C:\projects \Constech> echo ‘<?php include_once(“home.html”); ?>’ > index.php
C:\projects \Constech> echo ‘{}’ > composer.json
C:\projects \Constech> git commit -m “deploying my first static site on heroku”
C:\projects\Constech>Heroku login
Enter your Heroku credentials:
Email: <YOUR HEROKU EMAIL>
Password: <YOUR HEROKU PASSWORD>
C:\projects \Constech> git push heroku master
git add .
git commit -m “A message describing the changes made”
git push heroku master

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ogbonna Vitalis

Ogbonna Vitalis

134 Followers

Functional Engineering and Design of Elegant Web Based Systems are my deepest passion and greatest skill. I am obsessed with learning, writing, growth and tech.