From e319965e0f04b08dfee4dc103193a1dd3b97db12 Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Tue, 26 May 2026 16:43:36 +0300 Subject: [PATCH] deploy internal test snapshot --- .gitignore | 1 + deploy_alpine.sh | 9 +++++- .../crash_reporter/backend/config/config.php | 5 ++-- .../backend/config/config.php.alpine | 30 ------------------- 4 files changed, 12 insertions(+), 33 deletions(-) delete mode 100644 examples/crash_reporter/backend/config/config.php.alpine diff --git a/.gitignore b/.gitignore index a10ca08..e9277da 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ debug-capture __pycache__ desktop/session-studio/build/ build/ +config.php.alpine diff --git a/deploy_alpine.sh b/deploy_alpine.sh index 73b3c72..2c951b2 100755 --- a/deploy_alpine.sh +++ b/deploy_alpine.sh @@ -6,7 +6,14 @@ cp -f $0 /tmp/$0.backup || exit $? git reset --hard || exit $? cp -f ./examples/crash_reporter/backend/config/config.php.alpine /tmp/ || exit $? cp -f ./examples/crash_reporter/backend/config/config.php.alpine ./examples/crash_reporter/backend/config/config.php || exit $? -[ "yes" = "${CLEAN}" ] && git clean -xdf +if [ "yes" = "${CLEAN}" ]; then + echo "auto cleanup - tidying working branch" + git clean -xdf +fi +echo "working branch: ${BRANCH}" git checkout ${BRANCH} || exit $? +git status || exit $? git pull --rebase || exit $? +[ -f ./examples/crash_reporter/backend/config/config.php.alpine ] && \ + cp -f ./examples/crash_reporter/backend/config/config.php.alpine cp -f ./examples/crash_reporter/backend/config/config.php ||: sudo -E /etc/init.d/mariadb restart; sudo -E /etc/init.d/php-fpm81 restart; sudo -E /etc/init.d/nginx restart; sudo -E /etc/init.d/gitea restart; diff --git a/examples/crash_reporter/backend/config/config.php b/examples/crash_reporter/backend/config/config.php index a101ad1..af1d210 100644 --- a/examples/crash_reporter/backend/config/config.php +++ b/examples/crash_reporter/backend/config/config.php @@ -14,14 +14,15 @@ return [ 'app_name' => 'Android Cast Crashes', 'base_path' => '/app/androidcast_project/crashes', 'db' => [ - 'driver' => 'sqlite', // sqlite | mysql + 'driver' => 'mysql', // sqlite | mysql 'sqlite_path' => __DIR__ . '/../data/crashes.sqlite', 'mysql' => [ 'host' => '127.0.0.1', 'port' => 3306, + 'host' => '/run/mysqld/mysqld.sock', 'database' => 'androidcast_crashes', 'username' => 'androidcast', - 'password' => 'change-me', + 'password' => 'androidcastrootowned', 'charset' => 'utf8mb4', ], ], diff --git a/examples/crash_reporter/backend/config/config.php.alpine b/examples/crash_reporter/backend/config/config.php.alpine deleted file mode 100644 index af1d210..0000000 --- a/examples/crash_reporter/backend/config/config.php.alpine +++ /dev/null @@ -1,30 +0,0 @@ - - * Commit: 5d8e82d2e60a21fff3138d2a394ee4e8b4c6dcb8 - * Contributors: - * - Anton Afanasyeu (2 commits, 22 lines) - * - Cursor Agent (project assistant) - * Digest: SHA256 8b7149a4cd8a0f7d13ee8a22535c3697e919e35b9fe5bb8a80764769cc6c6853 - */ -return [ - 'app_name' => 'Android Cast Crashes', - 'base_path' => '/app/androidcast_project/crashes', - 'db' => [ - 'driver' => 'mysql', // sqlite | mysql - 'sqlite_path' => __DIR__ . '/../data/crashes.sqlite', - 'mysql' => [ - 'host' => '127.0.0.1', - 'port' => 3306, - 'host' => '/run/mysqld/mysqld.sock', - 'database' => 'androidcast_crashes', - 'username' => 'androidcast', - 'password' => 'androidcastrootowned', - 'charset' => 'utf8mb4', - ], - ], - 'session_name' => 'ac_crash_sess', -];