Deploy Static Website to Heroku
by John Vincent
Posted on April 5, 2017
This document discusses how to deploy a basic static website to Heroku.
Local Development
Project directory
cd /Users/jv/Desktop/MyDevelopment/github/projects-heroku
git clone git@github.com:johnvincentio/rijksmuseum.gitMove to code directory
cd rijksmuseumRename index.html
mv index.html home.htmlCreate file
/Users/jv/Desktop/MyDevelopment/github/projects-heroku/rijksmuseum/index.php
<?php include_once("home.html"); ?>Create file composer.json
{}Commit to repo
git add .
git commit -m "init"Heroku Login
Login to Heroku
cd /Users/jv/Desktop/MyDevelopment/github/projects-heroku/rijksmuseum
heroku loginCreate Heroku App
cd /Users/jv/Desktop/MyDevelopment/github/projects-heroku/rijksmuseum
heroku create johnvincentio-rijksmuseumhttps://johnvincentio-rijksmuseum.herokuapp.com/ | https://git.heroku.com/johnvincentio-rijksmuseum.git- Application url:
https://johnvincentio-rijksmuseum.herokuapp.com/ - Heroku git repository:
https://git.heroku.com/johnvincentio-rijksmuseum.git
Check Git
git remote -vshows
heroku https://git.heroku.com/johnvincentio-rijksmuseum.git (fetch)
heroku https://git.heroku.com/johnvincentio-rijksmuseum.git (push)
origin git@github.com:johnvincentio/rijksmuseum.git (fetch)
origin git@github.com:johnvincentio/rijksmuseum.git (push)Deploy the Code
cd /Users/jv/Desktop/MyDevelopment/github/projects-heroku/rijksmuseum
git push heroku masterTest
https://johnvincentio-rijksmuseum.herokuapp.com/Heroku
- Add Integration testing to Blogging App
- Add Mongoose to blogging app
- Continuous Integration with Travis CI
- Create SpringBoot App and Deploy to Heroku
- Deploy Node Express App to Heroku using Travis Continuous Integration
- Deploy React App to Heroku using Travis Continuous Integration
- Deploy Static Website to Heroku
- Heroku Notes
- Integrating Mongoose into an Express app
- Integration testing in a Mongoose world
- Tests and CI for Blogging App