Ghost / Heroku integration

Fission got Ghost running through Heroku.

Give the blog post a read and let me know what you think >>

I think I found an error in this.

    config.production.json →
  "url": "",
  "logging": {
    "level": "info",
    "transports": [
  "mail": {
    "transport": "SMTP",
    "options": {
      "service": "Mailgun",
      "auth": {
        "user": "",
        "pass": "**************************-***********-************"
  "fileStorage": false,
  "storage": {},
  "database": {
    "client": "mysql",
    "connection": {
      "host": "***************.***********",
      "port": "3306",
      "user": "*************",
      "password": "****************",
      "database": "*************"
    "pool": {
      "min": 0,
      "max": 5
    "debug": false
  "server": {
    "host": "",
    "port": "59199"
  "paths": {
    "contentPath": "/app/content/"
    throw err;

Error: Cannot find module 'mysql'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/app/bin/wait-for-db:3:18)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
bin/init-deployment: line 11: knex-migrator: command not found
1 Like

Just did a test install and getting the same thing. I’ve logged it

Looks like node dependencies need updating. Will post when it’s fixed.

There seemed to be an error in the way node modules were being read in the wait-for-db file. I fixed this, and did a test deploy, and it should be working fine. Let me know if that works for you @kichappa.

Hi @boris,
How did you fix it? I’m a beginner, so please elaborate.


I updated the code. Just hit the “deploy to Heroku” Button again and the install should complete without any problems.

1 Like