Skip to content

Instantly share code, notes, and snippets.

@goodtiding5
Forked from fzrhrs/ghostonmac.md
Last active January 19, 2017 22:02
Show Gist options
  • Save goodtiding5/82077235253d2e289e3ee7848390e9aa to your computer and use it in GitHub Desktop.
Save goodtiding5/82077235253d2e289e3ee7848390e9aa 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 --all
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

@goodtiding5
Copy link
Author

Reformatting. Add all files into git repo with 'git add --all'.

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