mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 04:39:20 +00:00
update README
This commit is contained in:
21
README.md
21
README.md
@@ -127,14 +127,25 @@ npm start
|
|||||||
|
|
||||||
## Basic production deployment (Ubuntu 18.04 VPS)
|
## Basic production deployment (Ubuntu 18.04 VPS)
|
||||||
|
|
||||||
All instructions below assumes you are NOT running as root, since it will give error in puppeteer. See
|
All instructions below assumes you are NOT running as root, since it will give an error in puppeteer. So let's start creating a new user and granting sudo privileges to it:
|
||||||
|
|
||||||
You'll need two subdomains forwarding to yours VPS ip to follow these instructions. We'll use `myapp.mydomain.com` to frontend and `api.mydomain.com` to backend in the following example. We'll also use an dedicated user with sudo privileges no deploy it (not root).
|
```bash
|
||||||
|
adduser deploy
|
||||||
|
usermod -aG sudo deploy
|
||||||
|
```
|
||||||
|
|
||||||
|
Now we can login with this new user:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
su deploy
|
||||||
|
```
|
||||||
|
|
||||||
|
You'll need two subdomains forwarding to yours VPS ip to follow these instructions. We'll use `myapp.mydomain.com` to frontend and `api.mydomain.com` to backend in the following example.
|
||||||
|
|
||||||
Update all system packages:
|
Update all system packages:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
apt update && apt upgrade
|
sudo apt update && sudo apt upgrade
|
||||||
```
|
```
|
||||||
|
|
||||||
Install node and confirm node command is available:
|
Install node and confirm node command is available:
|
||||||
@@ -155,8 +166,8 @@ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubun
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install docker-ce
|
sudo apt install docker-ce
|
||||||
sudo systemctl status docker
|
sudo systemctl status docker
|
||||||
sudo usermod -aG docker \${USER}
|
sudo usermod -aG docker ${USER}
|
||||||
su - \${USER}
|
su - ${USER}
|
||||||
```
|
```
|
||||||
|
|
||||||
Create Mysql Database using docker:
|
Create Mysql Database using docker:
|
||||||
|
|||||||
Reference in New Issue
Block a user