How to configure Pydevd remote debugging using Heroku

According to this answer, I need to copy the pycharm-debug.egg file to my server, how can I do this with the Heroku application so that I can remotely debug it using Pycharm?

+6
source share
1 answer

Heroku does not provide the file system used to run the web dynode for users. So you can not copy the file to the server via ssh.

So, you can do this by doing the following two methods:

  • The best way to do this is to add this egg file to the requirements so that it is installed on the environment during deployment, so it is automatically added to the python path. But this will require the package to be indexed p

  • Or, commit this file to the code base , so when you deploy the file, it will reach the server. Also, in your project settings file when using django add this file to the python path :

import sys sys.path.append(relative/path/to/file) 
+1
source

Source: https://habr.com/ru/post/956439/


All Articles