update install instruction
This commit is contained in:
parent
c921d2c350
commit
fb10fc3a2d
@ -1,23 +1,5 @@
|
||||
**We need a recent version of npm**
|
||||
|
||||
- clone repo to **/var/www/ffplayout-frontend**
|
||||
- cd in repo
|
||||
- install dependencies: `npm install`
|
||||
- create **.env** file:
|
||||
```
|
||||
BASE_URL='http://localhost:3000'
|
||||
API_URL='/'
|
||||
```
|
||||
- in dev mode `API_URL` should be: `http://localhost:8000`
|
||||
- for deactivating progress animation: `DEV=true`
|
||||
- create symlink for the media folder
|
||||
- when your media folder is a subfolder (for example `/opt/ffplayout/media`) create the same folder structure under **static**:
|
||||
- `mkdir -p /var/www/ffplayout-frontend/static/opt/ffplayout`
|
||||
- `ln -s /opt/ffplayout/media /var/www/ffplayout-frontend/static/opt/ffplayout/`
|
||||
- build app: `npm run build`
|
||||
|
||||
Your frontend should be now in **/var/www/ffplayout-frontend/dist** folder, which we are included already in the nginx config. You can serve now the GUI under your domain URL.
|
||||
|
||||
### OS Specific
|
||||
On debian 10 you need to install:
|
||||
|
||||
@ -26,10 +8,32 @@ apt install -y curl
|
||||
```
|
||||
|
||||
```
|
||||
curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
||||
curl -sL https://deb.nodesource.com/setup_14.x | bash -
|
||||
```
|
||||
|
||||
**For full installation (with ffmpeg/srs):**
|
||||
```
|
||||
apt install -y sudo net-tools git python3-dev build-essential python3-virtualenv nodejs nginx autoconf automake libtool pkg-config yasm cmake curl mercurial git wget gperf mediainfo
|
||||
```
|
||||
Installation
|
||||
-----
|
||||
|
||||
- clone repo to **/var/www/ffplayout-frontend**
|
||||
- cd in repo
|
||||
- install dependencies: `npm install`
|
||||
- create **.env** file:
|
||||
```
|
||||
BASE_URL='http://example.org'
|
||||
API_URL='/'
|
||||
```
|
||||
- in dev mode `BASE_URL` should be `http://localhost:3000` and `API_URL=http://localhost:8000`
|
||||
|
||||
- create symlink for the media folder
|
||||
- when your media folder is a subfolder (for example `/opt/ffplayout/media`) create the same folder structure under **static**:
|
||||
- `mkdir -p /var/www/ffplayout-frontend/static/opt/ffplayout`
|
||||
- `ln -s /opt/ffplayout/media /var/www/ffplayout-frontend/static/opt/ffplayout/`
|
||||
- build app: `npm run build`
|
||||
|
||||
Your frontend should be now in **/var/www/ffplayout-frontend/dist** folder, which is included in the nginx config.
|
||||
|
||||
Copy **docs/ffplayout.conf** to **/etc/nginx/sites-available/** and make a symlink:
|
||||
|
||||
`ln -s /etc/nginx/sites-available/ffplayout.conf /etc/nginx/sites-enabled/`
|
||||
|
||||
Change the nginx config and add your ssl configuration. After restarting nginx, you should be able to open to frontend in your browser.
|
||||
|
Loading…
x
Reference in New Issue
Block a user