A cleaner and super simple way to run ghost blog on heroku.
"It can run on your server as well :) Setup the config as locally then deploy with ./bin/deploy-production
"
- Make sure you have node version 10.x installed installed.
- Open terminal
- Navigate to project root - (use
cd
command ) - Run npm install
- Copy
.env.example
and save it as.env
- Edit the configurations to match your development environment
- Run
./bin/deploy-development
- You should be able to have the url of your blog echoed in the terminal. Copy and paste in your browser.
- Open terminal - make sure
heroku cli
is installed - Navigate to project root
- Run heroku login to initialize
heroku login
- Create an heroku app by running
heroku create
. You will get a url for your app. - Open heroku dashboard
https://dashboard.heroku.com/
and navigate to the app created above, - Go to app settings, and click config
- Enter the values in the
.env
file each in a separate config item. - Once this is done, its now time to deploy and test your blog.
- Commit any changes you have made locally
- Run
git push heroku master
- Voilla!! refresh your blog link in the browser