10 steps process to deploy a .html website to Heroku, run these commands on the terminal and make sure you have a Heroku account
-
- Get to the directory: cd YOUR_DIRECTORY
- Rename the file to home.html: mv index.html home.html
- Create index.php with the line: echo ‘<? include_once(“home.html”);?>’ > index.php
- Create empty composer file: echo ‘{}’ > composer.json
- git init
- sudo git add .
- sudo git commit -m “deploying static–err, dynamic site to heroku”
- heroku login
- login with your credentials
- heroku apps: create YOUR_APP_NAME
- git push Heroku master
- sudo git add .
- git commit -m “a helpful message”
- git push heroku master
Leave a Reply