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.

/app
    config.production.json →
{
  "url": "https://ctheory.herokuapp.com",
  "logging": {
    "level": "info",
    "transports": [
      "stdout"
    ]
  },
  "mail": {
    "transport": "SMTP",
    "options": {
      "service": "Mailgun",
      "auth": {
        "user": "postmaster@sandboxd9fb8d60491840b19154810a6ac21610.mailgun.org",
        "pass": "**************************-***********-************"
      }
    }
  },
  "fileStorage": false,
  "storage": {},
  "database": {
    "client": "mysql",
    "connection": {
      "host": "***************.***********.us-east-1.rds.amazonaws.com",
      "port": "3306",
      "user": "*************",
      "password": "****************",
      "database": "*************"
    },
    "pool": {
      "min": 0,
      "max": 5
    },
    "debug": false
  },
  "server": {
    "host": "0.0.0.0",
    "port": "59199"
  },
  "paths": {
    "contentPath": "/app/content/"
  }
}internal/modules/cjs/loader.js:584
    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 Post install error · Issue #3 · bmann/fission-ghost · GitHub

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.

Thanks.

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

1 Like