... | ... | @@ -113,13 +113,14 @@ make run |
|
|
|
|
|
# Production or pre pduction (on linux). XXX is the default account that installs the software
|
|
|
* Install pip : sudo apt install python3-pip
|
|
|
* To avoid conflict : export PATH="${HOME}/.local/bin:$PATH"
|
|
|
* To avoid pip conflicts : export PATH="${HOME}/.local/bin:$PATH"
|
|
|
* Install pipenv : pip3 install pipenv
|
|
|
* Create group : sudo groupadd stock
|
|
|
* Add user (XXX/www-data) : sudo usermod -a -G stock XXX
|
|
|
* Clone good branch in /opt : sudo git clone -b pre-prod https://gitlab.insa-rouen.fr/delestre/pao-stock-manager.git
|
|
|
* Change owner : sudo chown -R XXX.stock /opt/pao-stock-manager
|
|
|
* Add write permission for stock group : sudo chmod -R g+w /opt/pao-stock-manager
|
|
|
* Configfure the environment : pipenv install
|
|
|
|
|
|
|
|
|
|
... | ... | @@ -129,11 +130,6 @@ The apache module libapache2-mod-wsgi-py3 must be installed. |
|
|
|
|
|
In the following example the stock manager is installed in /opt/pao-stock-manager directory.
|
|
|
|
|
|
Change the owner of the application directory.
|
|
|
```bash
|
|
|
sudo chown -R www-data.www-data /opt/pao-stock-manager
|
|
|
```
|
|
|
|
|
|
Create the configuration file, like :
|
|
|
```bash
|
|
|
cd /etc/apache2
|
... | ... | |