Did anyone try this?
I understand that I should run the following command from the Heroku console:
heroku config:add DATABASE_URL=mysql2://username:email@example.com/data_base_name --app heroku-app-name
Is this a correct interpretation of the above? I'm a little bit uncertain what would be the IP for my PythonAntwhere db?
heroku config:add DATABASE_URL=mysql2://PYTHONANYWHERE_USERNAME:PYTHONANYWHERE_PASSWORD@/PYTHONANYWHERE-DATABASE-HOST-ADDRESS --app HEROKU-APP-NAME
But how do I open access from Heroku to PythonAnywhere?
The reason why I want to connect from Heroku to PythonAnywhere is that the main code is at PythonAnywhere but a part of the project is Node.js and hence cannot be hosted here.