2020-02-13 11:49:03 +01:00
|
|
|
# Application behind search.joinpeertube.org
|
|
|
|
|
|
|
|
## Dev
|
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ git submodule update --init --recursive
|
|
|
|
$ yarn install --pure-lockfile
|
|
|
|
```
|
|
|
|
|
2020-02-18 15:33:21 +01:00
|
|
|
The database (Elastic Search) is automatically created by PeerTube on startup.
|
2020-02-13 11:49:03 +01:00
|
|
|
|
2020-07-23 13:47:23 +02:00
|
|
|
Run simultaneously (for example with 2 terminals):
|
2020-02-13 11:49:03 +01:00
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ tsc -w
|
|
|
|
```
|
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ node dist/server
|
|
|
|
```
|
|
|
|
|
|
|
|
Then open http://localhost:3234.
|
|
|
|
|
|
|
|
## Production
|
|
|
|
|
2020-05-28 15:00:37 +02:00
|
|
|
Install dependencies:
|
|
|
|
* NodeJS (v12)
|
|
|
|
* Elastic Search
|
|
|
|
|
2020-02-13 11:49:03 +01:00
|
|
|
In the root of the cloned repo:
|
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ git submodule update --init --recursive
|
|
|
|
$ yarn install --pure-lockfile
|
|
|
|
$ npm run build
|
2020-05-28 15:00:37 +02:00
|
|
|
$ cp config/default.yaml config/production.yaml
|
|
|
|
$ vim config/production.yaml
|
2020-02-13 11:49:03 +01:00
|
|
|
$ node dist/server.js
|
|
|
|
```
|