niekcandaele / CSGO-RankMe-stats

Application that displays stats from the Kento RankMe plugin
33 stars 6 forks source link

Unknown database ':undefined/rankme' #28

Closed KillerRoi closed 3 years ago

KillerRoi commented 4 years ago

Description info: Detected 2 available CPUs, scaling webserver to 2 processes error: Fatal error while connecting to database SequelizeConnectionError: Unknown database ':undefined/rankme' ubuntu@ip:~/CSGO-RankMe-stats-master$ node src/index.js info: Detected 2 available CPUs, scaling webserver to 2 processes error: Fatal error while connecting to database SequelizeConnectionError: Unknown database ':undefined/rankme'

To Reproduce Steps to reproduce the behavior:

  1. Go to 'master/src'
  2. Start 'node index.js'
  3. See error

Expected behavior The Bot Working With The Database Specified in The .env Config!

Screenshots image

Environment info:

Additional context Add any other context about the problem here.

niekcandaele commented 4 years ago

Hi, try adding the MYSQL_PORT variable to your env

https://github.com/niekcandaele/CSGO-RankMe-stats/blob/cf1c7326c3b1d770cc3c05cd1a01e802641b00dd/src/index.js#L89