mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
fix: justfile shebang recipes indentation (spaces → tabs)
This commit is contained in:
2
TODO.md
2
TODO.md
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Completed
|
## Completed
|
||||||
|
|
||||||
|
- [x] Fix `just serve` — justfile shebang recipes (`deploy-env`, `reencrypt-password`) used space indentation instead of tabs, causing "extra leading whitespace" parse error
|
||||||
|
|
||||||
- [x] PDF 100 MB limit + bentopdf mention
|
- [x] PDF 100 MB limit + bentopdf mention
|
||||||
- [x] `ThesisCreateController`: `MAX_PDF_SIZE = 100 MB`; PDFs checked against it, other files still 500 MB
|
- [x] `ThesisCreateController`: `MAX_PDF_SIZE = 100 MB`; PDFs checked against it, other files still 500 MB
|
||||||
- [x] `ThesisEditController`: same per-PDF limit applied
|
- [x] `ThesisEditController`: same per-PDF limit applied
|
||||||
|
|||||||
6
justfile
6
justfile
@@ -68,9 +68,9 @@ deploy:
|
|||||||
|
|
||||||
[group('deploy')]
|
[group('deploy')]
|
||||||
deploy-env:
|
deploy-env:
|
||||||
# Upload app/.env only if it exists locally; never overwrites a remote .env that already has APP_KEY.
|
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
# Upload app/.env only if it exists locally; never overwrites a remote .env that already has APP_KEY.
|
||||||
if [ ! -f app/.env ]; then
|
if [ ! -f app/.env ]; then
|
||||||
echo "WARNING: app/.env not found locally — skipping."
|
echo "WARNING: app/.env not found locally — skipping."
|
||||||
exit 0
|
exit 0
|
||||||
@@ -86,13 +86,13 @@ deploy-env:
|
|||||||
|
|
||||||
[group('deploy')]
|
[group('deploy')]
|
||||||
reencrypt-password new_key_b64="":
|
reencrypt-password new_key_b64="":
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
# Re-encrypt the SMTP password in the remote DB after rotating APP_KEY.
|
# Re-encrypt the SMTP password in the remote DB after rotating APP_KEY.
|
||||||
# Usage:
|
# Usage:
|
||||||
# 1. Generate a new key: php -r "echo base64_encode(random_bytes(32));"
|
# 1. Generate a new key: php -r "echo base64_encode(random_bytes(32));"
|
||||||
# 2. Run: just reencrypt-password <new_base64_key>
|
# 2. Run: just reencrypt-password <new_base64_key>
|
||||||
# 3. Update app/.env locally with the new key, then run: just deploy-env
|
# 3. Update app/.env locally with the new key, then run: just deploy-env
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -euo pipefail
|
|
||||||
if [ -z "{{new_key_b64}}" ]; then
|
if [ -z "{{new_key_b64}}" ]; then
|
||||||
echo "Usage: just reencrypt-password <new_base64_key>"
|
echo "Usage: just reencrypt-password <new_base64_key>"
|
||||||
echo "Generate a key: php -r \"echo base64_encode(random_bytes(32));\""
|
echo "Generate a key: php -r \"echo base64_encode(random_bytes(32));\""
|
||||||
|
|||||||
Reference in New Issue
Block a user