Compare commits

..

2 Commits

Author SHA1 Message Date
Jeremy Dormitzer
60e8b7607d Set up prodigy config for lola-server/travel-service to use monorepo 2021-03-12 17:27:26 -05:00
Jeremy Dormitzer
c62c40cb4a Set lsp-pyright to multi-root mode to avoid "too many open files" error 2021-03-12 17:26:24 -05:00
2 changed files with 23 additions and 23 deletions

View File

@ -147,22 +147,22 @@
>> ~/lola/logs/lola-server.log 2>&1")) >> ~/lola/logs/lola-server.log 2>&1"))
:file "~/lola/logs/lola-server.log" :file "~/lola/logs/lola-server.log"
:inhibit-process-filter t :inhibit-process-filter t
:cwd "~/lola/lola-server" :cwd "~/lola/core-services/lola_server"
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/lola-server" :init-async (python-service-setup "~/.pyenv/versions/core-services"
"~/lola/lola-server/.env")) "~/lola/core-services/lola_server/.env"))
(prodigy-define-service (prodigy-define-service
:name "lola-server celery worker" :name "lola-server celery worker"
:tags '(lola backend) :tags '(lola backend)
:command "python" :command "python"
:args '("bin/start_celery_worker.py" "-P" "gevent" "-n" "lola-server") :args '("bin/start_celery_worker.py" "-P" "gevent" "-n" "lola-server")
:cwd "~/lola/lola-server" :cwd "~/lola/core-services/lola_server"
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/lola-server" :init-async (python-service-setup "~/.pyenv/versions/core-services"
"~/lola/lola-server/.env")) "~/lola/core-services/lola_server/.env"))
(prodigy-define-service (prodigy-define-service
:name "travel-service" :name "travel-service"
@ -171,13 +171,13 @@
:args (lambda () :args (lambda ()
(list (list
"-c" "python bin/start_web.py >> ~/lola/logs/travel-svc.log 2>&1")) "-c" "python bin/start_web.py >> ~/lola/logs/travel-svc.log 2>&1"))
:cwd "~/lola/lola-travel-service" :cwd "~/lola/core-services/travel_service"
:file "~/lola/logs/travel-svc.log" :file "~/lola/logs/travel-svc.log"
:inhibit-process-filter t :inhibit-process-filter t
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/travel-service" :init-async (python-service-setup "~/.pyenv/versions/core-services"
"~/lola/lola-travel-service/.env")) "~/lola/core-services/travel_service/.env"))
(prodigy-define-service (prodigy-define-service
:name "travel-service celery worker" :name "travel-service celery worker"
@ -194,11 +194,11 @@
">> ~/lola/logs/travel-svc-celery.log 2>&1"))) ">> ~/lola/logs/travel-svc-celery.log 2>&1")))
:file "~/lola/logs/travel-svc-celery.log" :file "~/lola/logs/travel-svc-celery.log"
:inhibit-process-filter t :inhibit-process-filter t
:cwd "~/lola/lola-travel-service" :cwd "~/lola/core-services/travel_service"
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/travel-service" :init-async (python-service-setup "~/.pyenv/versions/core-services"
"~/lola/lola-travel-service/.env")) "~/lola/core-services/travel_service/.env"))
(prodigy-define-service (prodigy-define-service
:name "secrets" :name "secrets"

View File

@ -72,7 +72,7 @@
(lsp-deferred))) (lsp-deferred)))
:custom :custom
(lsp-pyright-use-library-code-for-types t) (lsp-pyright-use-library-code-for-types t)
(lsp-pyright-multi-root nil) (lsp-pyright-multi-root t)
:general :general
(python-mode-map "C-c C-d" #'lsp-describe-thing-at-point)) (python-mode-map "C-c C-d" #'lsp-describe-thing-at-point))