From 3ea28905fc9efe96855747bb034f530cc742fd06 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 29 Jun 2023 14:49:21 +0200 Subject: [PATCH] Optimized pixelfed README.md file --- roles/server_docker-pixelfed/README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/roles/server_docker-pixelfed/README.md b/roles/server_docker-pixelfed/README.md index 63d68a8f..b90f4909 100644 --- a/roles/server_docker-pixelfed/README.md +++ b/roles/server_docker-pixelfed/README.md @@ -1,8 +1,28 @@ # role server_docker-pixelfed -## Go into application container +## access application ```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