Installation/Setup (Production system)
- Install the orthos2 package:
$ zypper install orthos2
- Change nginx user to orthos:
In
/etc/nginx/nginx.conf
adduser orthos orthos;
to the beginning of the file
- Enter the correct server name to the nginx server conf:
In
/etc/nginx/conf.d/orthos2_nginx.conf
replace127.0.0.1
in theserver_name
directive with the fqdn of the orthos2 server
- Dump Database Model:
cd /usr/lib/orthos2 sudo -u orthos ./manage.py makemigrations data frontend taskmanager api
Deploy code to database
In case of a fresh install - Create the database: .. code-block:
cd /usr/lib/orthos2 sudo -u orthos ./manage.py migrate
In case of an Update (and makemigrations above produced database difference dumps) - Apply/deploy detected database changes In case of changes detected in the data app, do: .. code-block:
cd /usr/lib/orthos2 sudo -u orthos ./manage.py migrate data
- Install fixtures:
sudo -u orthos ./install_all_fixtures.sh
- Create a superuser
sudo -u orthos ./manage.py createsuperuser
- Create html files from templates
sudo -u orthos ./manage.py collectstatic
- start all services
systemctl enable nginx systemctl enable orthos2.socket systemctl enable orthos2.service systemctl enable orthos2_taskmanager systemctl start nginx systemctl start orthos2.socket systemctl start orthos2.service systemctl start orthos2_taskmanager