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
|
|
|
|
|
|
|
Then run simultaneously (for example with 2 terminals):
|
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ tsc -w
|
|
|
|
```
|
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ node dist/server
|
|
|
|
```
|
|
|
|
|
|
|
|
Then open http://localhost:3234.
|
|
|
|
|
|
|
|
## Production
|
|
|
|
|
|
|
|
In the root of the cloned repo:
|
|
|
|
|
|
|
|
```terminal
|
|
|
|
$ git submodule update --init --recursive
|
|
|
|
$ yarn install --pure-lockfile
|
|
|
|
$ npm run build
|
|
|
|
$ node dist/server.js
|
|
|
|
```
|