mirror of
				https://gitea.invidious.io/iv-org/documentation
				synced 2025-06-05 22:19:26 +02:00 
			
		
		
		
	Update macOS install (#545)
* Remove install for shards shards is not available as a Homebrew package. Instead, it comes with the crystal package. <https://crystal-lang.org/reference/1.12/man/shards/index.html#installation> * Fix postgresql package name * Add createdb Fixes initial error: FATAL: database "<user>" does not exist <https://stackoverflow.com/a/17936043> * Clone repo before PostgreSQL setup The PostgreSQL setup uses config files from the repo. * Fix PostgreSQL name in headings * Give PostgreSQL role login permissions Fixes an error upon running the first script: FATAL: role "kemal" is not permitted to log in * Remove nonexistent script * Use make for Invidious setup Copied from Linux section
This commit is contained in:
		| @@ -138,7 +138,7 @@ git clone https://github.com/iv-org/invidious | |||||||
| exit | exit | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| #### Set up PostgresSQL | #### Set up PostgreSQL | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| systemctl enable --now postgresql | systemctl enable --now postgresql | ||||||
| @@ -177,14 +177,22 @@ systemctl enable --now invidious.service | |||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| brew update | brew update | ||||||
| brew install shards crystal postgres imagemagick librsvg | brew install crystal postgresql imagemagick librsvg | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| #### Set up PostgresSQL | #### Clone the Invidious repository | ||||||
|  |  | ||||||
|  | ```bash | ||||||
|  | git clone https://github.com/iv-org/invidious | ||||||
|  | cd invidious | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | #### Set up PostgreSQL | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| brew services start postgresql | brew services start postgresql | ||||||
| psql -c "CREATE ROLE kemal WITH PASSWORD 'kemal';" # Change 'kemal' here to a stronger password, and update `password` in config/config.yml | createdb | ||||||
|  | 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 | ||||||
| @@ -193,7 +201,6 @@ 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 | ||||||
| ``` | ``` | ||||||
| @@ -201,12 +208,10 @@ psql invidious kemal < config/sql/playlist_videos.sql | |||||||
| #### Set up Invidious | #### Set up Invidious | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| git clone https://github.com/iv-org/invidious | make | ||||||
| cd invidious |  | ||||||
| shards install --production | # Configure config/config.yml as you like | ||||||
| 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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user