Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
1561 Lượt xem

I simply don't know how to run odoo-bin commands on my VPS. I have installed odoo successfully on a virtual private server and can connect to my SSH, but Odoo did not describe it in a simple step on how to configure and run the odoo CLI on the documentation page.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,
See: https://www.youtube.com/watch?v=27TAreprb0I
Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Niyas!
Your videos on youtube has always been helpful to me everytime.
However, I was able to run that on my windows desktop with pycharm using your instructions. But the problem here is that I want to run it on my VPS terminal. I downloaded Odoo 17 Enterprise and install on my VPS, I can locate the installation directory, i.e, "/usr/lib/python3/dist-packages/odoo/addons", but can't find the odoo-bin and location to my venv. My configuration file is in "/etc/odoo/odoo.conf"
Thanks!

Tác giả Câu trả lời hay nhất

I later figured it out and here is the command from the terminal:

#sudo -u odoo /usr/bin/odoo shell -d odoo


To exit the Odoo shell, simply type exit() and press Enter.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Refer to https://www.odoo.com/documentation/18.0/developer/reference/cli.html

There are several examples:

Ảnh đại diện
Huỷ bỏ
Tác giả

I mean how to configure it to run on my VPS instance

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 25
2062
1
thg 6 25
2450
2
thg 5 25
2024
1
thg 5 25
1231
1
thg 2 25
38