papermerge/papermerge-core

Unknown command: 'worker'.

luyuanerp opened this issue · 2 comments

After installing according to the Contributor's Manual document, the following problems occur

  1. run the ./manage.py worker step,
    The following error message appears。
    Unknown command: 'worker'.

0

  1. The backend and frontend starts normally, but the front-end page cannot be accessed. The chrome console prompts an error as shown below。

5

Backend startup screenshot
1

Frontend startup screenshot
2

Please help to see, thanks.

ciur commented

@luyuanerp,

django worker command

./manage.py worker

was removed. Now you should start worker with (just make sure you start command from ./docker/dev folder):

$ poetry run task worker

Note that poetry automatically runs the task in own python virtual environment (i.e. you don't need to do poetry shell apriori).
Worker taskipy command is defined here
It is an issue on me to update this part of documentation.

Regarding the frontend issue, I see that you access it from external IP (120.76.102.100:4200), in such case it won't work, because, in development mode, the frontend always tries to access backed "127.0.0.1:8000"; you may need to adjust
environment.js.

ciur commented

This (I mean starting worker with poetry run task worker) is actually mentioned in the documentation:

https://docs.papermerge.io/Contributor%27s%20Manual/backend_dev_setup.html#worker