From 64b449f6cd78e436b9dcda92863e0f50435fcd78 Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Tue, 26 May 2026 16:28:31 +0300 Subject: [PATCH] don't merge - open passwords --- deploy_alpine.sh | 12 ++++++++ .../backend/config/config.php.alpine | 30 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100755 deploy_alpine.sh create mode 100644 examples/crash_reporter/backend/config/config.php.alpine diff --git a/deploy_alpine.sh b/deploy_alpine.sh new file mode 100755 index 0000000..73b3c72 --- /dev/null +++ b/deploy_alpine.sh @@ -0,0 +1,12 @@ +#!/bin/sh +BRANCH=${BRANCH:-next} +CLEAN=${CLEAN:-yes} +git fetch --all --tags || exit $? +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 +git checkout ${BRANCH} || exit $? +git pull --rebase || exit $? +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.alpine b/examples/crash_reporter/backend/config/config.php.alpine new file mode 100644 index 0000000..af1d210 --- /dev/null +++ b/examples/crash_reporter/backend/config/config.php.alpine @@ -0,0 +1,30 @@ + + * 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', +];