mirror of
https://gitea.invidious.io/iv-org/documentation.git
synced 2024-08-15 00:53:34 +00:00
Compare commits
1 commit
406246d0b9
...
ebcb252c66
Author | SHA1 | Date | |
---|---|---|---|
|
ebcb252c66 |
1 changed files with 10 additions and 15 deletions
|
@ -138,7 +138,7 @@ git clone https://github.com/iv-org/invidious
|
||||||
exit
|
exit
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Set up PostgreSQL
|
#### Set up PostgresSQL
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
systemctl enable --now postgresql
|
systemctl enable --now postgresql
|
||||||
|
@ -177,22 +177,14 @@ systemctl enable --now invidious.service
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew update
|
brew update
|
||||||
brew install crystal postgresql imagemagick librsvg
|
brew install shards crystal postgres imagemagick librsvg
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Clone the Invidious repository
|
#### Set up PostgresSQL
|
||||||
|
|
||||||
```bash
|
|
||||||
git clone https://github.com/iv-org/invidious
|
|
||||||
cd invidious
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Set up PostgreSQL
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew services start postgresql
|
brew services start postgresql
|
||||||
createdb
|
psql -c "CREATE ROLE kemal WITH PASSWORD 'kemal';" # Change 'kemal' here to a stronger password, and update `password` in config/config.yml
|
||||||
psql -c "CREATE ROLE kemal WITH LOGIN PASSWORD 'kemal';" # Change 'kemal' here to a stronger password, and update `password` in config/config.yml
|
|
||||||
createdb -O kemal invidious
|
createdb -O kemal invidious
|
||||||
psql invidious kemal < config/sql/channels.sql
|
psql invidious kemal < config/sql/channels.sql
|
||||||
psql invidious kemal < config/sql/videos.sql
|
psql invidious kemal < config/sql/videos.sql
|
||||||
|
@ -201,6 +193,7 @@ psql invidious kemal < config/sql/users.sql
|
||||||
psql invidious kemal < config/sql/session_ids.sql
|
psql invidious kemal < config/sql/session_ids.sql
|
||||||
psql invidious kemal < config/sql/nonces.sql
|
psql invidious kemal < config/sql/nonces.sql
|
||||||
psql invidious kemal < config/sql/annotations.sql
|
psql invidious kemal < config/sql/annotations.sql
|
||||||
|
psql invidious kemal < config/sql/privacy.sql
|
||||||
psql invidious kemal < config/sql/playlists.sql
|
psql invidious kemal < config/sql/playlists.sql
|
||||||
psql invidious kemal < config/sql/playlist_videos.sql
|
psql invidious kemal < config/sql/playlist_videos.sql
|
||||||
```
|
```
|
||||||
|
@ -208,10 +201,12 @@ psql invidious kemal < config/sql/playlist_videos.sql
|
||||||
#### Set up Invidious
|
#### Set up Invidious
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make
|
git clone https://github.com/iv-org/invidious
|
||||||
|
cd invidious
|
||||||
# Configure config/config.yml as you like
|
shards install --production
|
||||||
|
crystal build src/invidious.cr --release
|
||||||
cp config/config.example.yml config/config.yml
|
cp config/config.example.yml config/config.yml
|
||||||
|
# Configure config/config.yml how you want
|
||||||
```
|
```
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
Loading…
Reference in a new issue