[ADD] production.md with more information about managing prod
- Support SSL - Command to watch log - Command to restart services - How to run with address ip
This commit is contained in:
parent
d4c1ada94b
commit
e02143e8d3
1 changed files with 30 additions and 2 deletions
|
|
@ -4,18 +4,46 @@
|
|||
|
||||
### 1. Clone the project:
|
||||
```bash
|
||||
git clone https://git.erplibre.ca/ERPLibre.git
|
||||
git clone http://git.erplibre.ca/ERPLibre.git
|
||||
cd ERPLibre
|
||||
```
|
||||
|
||||
### 2. Modify the parameters
|
||||
Modify the file env_var.sh for production installation.
|
||||
|
||||
### 3. Execute the script:
|
||||
Support Ubuntu 18.04 server
|
||||
```bash
|
||||
cd ERPLibre
|
||||
./script/install_dev.sh
|
||||
./script/install_production.sh
|
||||
```
|
||||
A service is running by systemd, you can access with the DNS name, found it in env_var.sh
|
||||
|
||||
### 4. SSL:
|
||||
Generate a ssl certificat
|
||||
```bash
|
||||
sudo certbot --nginx
|
||||
```
|
||||
|
||||
## Watch log
|
||||
```bash
|
||||
sudo systemctl -feu [EL_USER]
|
||||
```
|
||||
|
||||
## Run by address ip
|
||||
Comment following line in /[EL_USER]/erplibre/config.conf
|
||||
```
|
||||
#xmlrpc_interface = 127.0.0.1
|
||||
#netrpc_interface = 127.0.0.1
|
||||
#proxy_mode = True
|
||||
```
|
||||
Add your address ip in nginx config at server_name in /etc/nginx/sites-available/[EL_WEBSITE_NAME]
|
||||
|
||||
Restart daemon:
|
||||
```bash
|
||||
sudo systemctl restart nginx
|
||||
sudo systemctl restart [EL_USER]
|
||||
```
|
||||
|
||||
## Production execution
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Reference in a new issue