Access denied when production env is used

Hey, I’m trying to setup up ghost 3.0 on a dedicated server. NodeJs runs the /current/index.js with env “development”. Everything is fine.

But when I change to production it breaks. The logs prints the following
DatabaseError: ER_ACCESS_DENIED_ERROR: Access denied for user ‘root’@‘localhost’ (using password: NO
DatabaseError.KnexMigrateError versions/3.0.2/node_modules/knex-migrator/lib/errors.js:7:26)

The strange thing is that I configured within the config.production.json a “ghost” mysql db user.
Has someone have a hint how to force the set credentials when production env is used?

Thanks

and how can I change the localhost:2368 urls to the set url… Frontend and email links are wrong…
It seems like the main “config.production.json” is not utilized

Is there a reason you’re not using the Ghost CLI? It handles all of that kind of gruntwork for you ;)

How are you running node? Are you in the correct directory? You might be able to see what config file is being loaded by using the DEBUG env var. You might also want to check that the config file is readable by Ghost.