mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-09 22:41:03 +01:00
Optimized pixelfed README.md file
This commit is contained in:
parent
88a67c7fd9
commit
4e87a98716
@ -1,8 +1,28 @@
|
|||||||
# role server_docker-pixelfed
|
# role server_docker-pixelfed
|
||||||
|
|
||||||
## Go into application container
|
## access application
|
||||||
```bash
|
```bash
|
||||||
sudo docker-compose exec -it application bash
|
docker-compose exec -it application bash
|
||||||
|
```
|
||||||
|
|
||||||
|
## access database
|
||||||
|
```bash
|
||||||
|
docker-compose exec -it database mariadb -u pixelfed -p
|
||||||
|
```
|
||||||
|
|
||||||
|
## cleanup instagram imports
|
||||||
|
### mysql
|
||||||
|
```bash
|
||||||
|
DELETE from import_posts WHERE 1;
|
||||||
|
DELETE from import_jobs WHERE 1;
|
||||||
|
DELETE from import_datas WHERE 1;
|
||||||
|
DELETE from statuses where created_at < "2022-12-01 22:15:39";
|
||||||
|
DELETE from media where deleted_at >= "2023-07-28 14:39:05";
|
||||||
|
```
|
||||||
|
### files
|
||||||
|
```bash
|
||||||
|
docker-compose exec -u "www-data" application rm -rv "/var/www/storage/app/imports/1"
|
||||||
|
docker-compose exec -u "www-data" application php artisan schedule:run
|
||||||
```
|
```
|
||||||
|
|
||||||
## hard cleanup
|
## hard cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user