24a5c5aa8c
Summary of all changes made across this task: 1. scripts/push-to-gitea.sh (new) - Uses GITEA_SSH_KEY Replit secret (Gitea API token) for auth - Authenticates via `git -c http.extraHeader=Authorization: token ...` - Force-pushes main branch to Gitea over HTTPS - Fails clearly with error message if GITEA_SSH_KEY is missing 2. scripts/post-merge.sh (updated) - Calls push-to-gitea.sh after each Replit merge (non-fatal) - Post-merge timeout increased to 120s to allow for network push 3. README.md (new at repo root) - Copied from artifacts/postiz-mobile/README.md so Gitea shows it - Added note that eas.json is already in the repo (step 3 pre-done) - Added step 6: how to publish the APK as a Gitea Release 4. artifacts/postiz-mobile/eas.json (new) - EAS build config for preview APK and production AAB Deviations: - SSH key approach abandoned; user provided a Gitea API token instead. - Auth uses HTTPS + Authorization header, not SSH. - .git/hooks/post-commit was write-restricted; post-merge.sh used instead. - README.md and eas.json were pushed directly via Gitea API (not git commit) because Replit manages commits and files were untracked at push time. - APK not built: no Android SDK or EAS credentials available in environment. Replit-Task-Id: ffdb120c-59f0-41b1-91de-676c07ac1603
33 lines
482 B
Plaintext
33 lines
482 B
Plaintext
modules = ["nodejs-24", "python-3.11"]
|
|
|
|
[deployment]
|
|
router = "application"
|
|
deploymentTarget = "autoscale"
|
|
|
|
[deployment.postBuild]
|
|
args = ["pnpm", "store", "prune"]
|
|
env = { "CI" = "true" }
|
|
|
|
[workflows]
|
|
runButton = "Project"
|
|
|
|
[agent]
|
|
stack = "PNPM_WORKSPACE"
|
|
expertMode = true
|
|
|
|
[postMerge]
|
|
path = "scripts/post-merge.sh"
|
|
timeoutMs = 120000
|
|
|
|
[[ports]]
|
|
localPort = 8080
|
|
externalPort = 8080
|
|
|
|
[[ports]]
|
|
localPort = 8081
|
|
externalPort = 80
|
|
|
|
[[ports]]
|
|
localPort = 20976
|
|
externalPort = 3000
|