Skip to content

Instantly share code, notes, and snippets.

@bigdragon1977
Created December 29, 2020 14:45
Show Gist options
  • Select an option

  • Save bigdragon1977/ed1b6014a8c15e43150570924941bb8b to your computer and use it in GitHub Desktop.

Select an option

Save bigdragon1977/ed1b6014a8c15e43150570924941bb8b to your computer and use it in GitHub Desktop.
Установка Flectra 2 на Ubuntu 18.04
## Установка Flectra 2 на Ubuntu 18.04 с master https://gitlab.com/flectra-hq/flectra
по мотивам
https://gitlab.com/whotopia/flectra2-centos8-installation/-/blob/master/install-flectra2-centos8.sh
на ситему где уже стоит Flectra 1 так что некоторые шаги пропущены за не надобностью.
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.7
sudo apt install python3 python3-babel python3-dateutil python3-decorator python3-docutils python3-feedparser python3-gevent python3-html2text python3-pil python3-jinja2 python3-libsass python3-lxml python3-mako python3-ofxparse python3-passlib python3-polib python3-psutil python3-psycopg2 python3-pydot python3-pyparsing python3-pypdf2 python3-reportlab python3-requests python3-serial python3-setuptools python3-stdnum python3-suds python3-tz python3-usb python3-werkzeug python3-xlsxwriter rsync
virtualenv -p /usr/bin/python3.7 flectra_2-venv
source flectra_2-venv/bin/activate
## Затем в файле requirements.txt убрал строки
## python-ldap==3.1.0; sys_platform != 'win32'
## psutil==5.6.6
## с ними не ставилось
pip install -r flectra/requirements.txt
cd flectra
pip install ./
pip install psycopg2-binary
pip install lessc
deactivate
cd ..
mkdir flectra_2-local
mkdir flectra_2-custom-addons
## Создал конфиг
vim flectra_2.conf
## Создал пользователя базы данных и саму базу.
# Запуск
flectra_2-venv/bin/python3.7 flectra/flectra-bin -c flectra_2.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment