T
Twenty7d ago
anjali

Worker doesn't work on Deployment

Hey @charles In the package.json, the command "start": "npx nx run-many -t start worker -p twenty-server twenty-front" works locally to start the worker, but it doesn't work in the deployment version. Is there a change required in the Dockerfile to make it work in the deployed environment?
1 Reply
charles
charles6d ago
Hi @anjali, you do not want to use nx in production (this is a development monorepo tool). To self-host Twenty you will need to run everthing in production mode and you will need to run independently your server and worker. See here: https://twenty.com/developers/section/self-hosting/docker-compose Also see our docker-compose example: https://raw.githubusercontent.com/twentyhq/twenty/main/packages/twenty-docker/docker-compose.yml, we are running two containers one for the server and one for the worker
Want results from more Discord servers?
Add your server