Skip to content

Instantly share code, notes, and snippets.

@fzrhrs
Created April 16, 2016 01:39
Show Gist options
  • Save fzrhrs/dc61c53888e03d53fb147ad3fa0a724b to your computer and use it in GitHub Desktop.
Save fzrhrs/dc61c53888e03d53fb147ad3fa0a724b to your computer and use it in GitHub Desktop.
Ghost on Mac and Heroku

Local mac: npm install --production

sudo echo node_modules > .gitignore git init git add . git commit -m 'Initial commit'

heroku create app-name heroku addons:create heroku-postgresql:hobby-dev

Set Heroku Config Head over to Heroku Postgres Dashboard and click on the database you just created.

heroku config:set POSTGRES_DATABASE=<value>  
heroku config:set POSTGRES_HOST=<value>  
heroku config:set POSTGRES_PASSWORD=<value>  
heroku config:set POSTGRES_USER=<value>  
heroku config:set MY_URL=http://your-url.com  
heroku config:set NODE_ENV=production

Configure Ghost on Heroku http://www.autodidacts.io/host-a-ghost-blog-on-heroku/#configureghostforheroku

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment