-
Notifications
You must be signed in to change notification settings - Fork 1
AWS-ready #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
AWS-ready #142
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4766d0b
AWS-ready
elifouts 4a2caa7
Update backend/api/static/account-deletion.html
elifouts bcc2eb0
Fix review comments: AASA content-type, proxy header spoofing, API_BA…
Copilot f593ab1
Consolidate static/compliance files to single source of truth with sy…
Copilot 764d832
Refactor scripts and components for improved clarity and functionalit…
elifouts 902fe24
Update deployment instructions and scripts for AWS EC2 native setup; …
elifouts 6f0eff1
updated scripts for aws
elifouts 8572764
updated instructions fr
elifouts 4f2ab8a
screw this file
elifouts 5f763c6
fixed
elifouts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| EXPO_PUBLIC_USE_LOCAL_API=1 | ||
| EXPO_PUBLIC_LOCAL_API_URL=http://192.168.76.129:8080 | ||
| EXPO_PUBLIC_API_URL=https://devbits.ddns.net | ||
| EXPO_PUBLIC_API_URL=https://devbits.app | ||
| EXPO_PUBLIC_LOCAL_API_PORT=8080 | ||
| POSTGRES_DB=devbits_dev | ||
| POSTGRES_USER=devbits_dev | ||
| POSTGRES_PASSWORD=devbits_dev_password | ||
| POSTGRES_PASSWORD=devbits_dev_password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| #!/usr/bin/env bash | ||
| # Script: sync-static.sh | ||
| # Does: Copies compliance/static files from backend/api/static (source of truth) to frontend/public. | ||
| # Run this whenever the backend static files change to keep the frontend web build in sync. | ||
| # Use: ./sync-static.sh | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| ROOT="$(cd "$SCRIPT_DIR/.." && pwd)" | ||
|
|
||
| SRC="$ROOT/backend/api/static" | ||
| DST="$ROOT/frontend/public" | ||
|
|
||
| FILES=( | ||
| apple-app-site-association | ||
| privacy-policy.html | ||
| account-deletion.html | ||
| ) | ||
|
|
||
| for file in "${FILES[@]}"; do | ||
| src_path="$SRC/$file" | ||
| dst_path="$DST/$file" | ||
|
|
||
| if [[ ! -f "$src_path" ]]; then | ||
| echo "WARNING: Source file not found, skipping: $src_path" | ||
| continue | ||
| fi | ||
|
|
||
| if cmp -s "$src_path" "$dst_path" 2>/dev/null; then | ||
| echo "Up to date: $file" | ||
| else | ||
| cp "$src_path" "$dst_path" | ||
| echo "Synced: $file" | ||
| fi | ||
| done | ||
|
|
||
| echo "Sync complete." | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.