diff --git a/.codex b/.codex
new file mode 100644
index 0000000..e69de29
diff --git a/.env.example b/.env.example
index a2ef39b..6ccf5ec 100644
--- a/.env.example
+++ b/.env.example
@@ -1,6 +1,6 @@
EXPO_PUBLIC_USE_LOCAL_API=1
EXPO_PUBLIC_LOCAL_API_URL=http://192.168.76.129:8080
-EXPO_PUBLIC_API_URL=https://devbits.app
+EXPO_PUBLIC_API_URL=https://devbits.ddns.net
EXPO_PUBLIC_LOCAL_API_PORT=8080
POSTGRES_DB=devbits_dev
POSTGRES_USER=devbits_dev
diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml
deleted file mode 100644
index 24c1397..0000000
--- a/.github/workflows/aws.yml
+++ /dev/null
@@ -1,89 +0,0 @@
-# This workflow will build and push a new container image to Amazon ECR,
-# and then will deploy a new task definition to Amazon ECS.
-# It is triggered manually via workflow_dispatch.
-#
-# To use this workflow, you will need to complete the following set-up steps:
-#
-# 1. Create an ECR repository to store your images.
-# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`.
-# Set the `AWS_REGION` and `ECR_REPOSITORY` variables in your GitHub repository/environment settings.
-#
-# 2. Create an ECS task definition, an ECS cluster, and an ECS service.
-# For example, follow the Getting Started guide on the ECS console:
-# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun
-# Set the `ECS_SERVICE` and `ECS_CLUSTER` variables in your GitHub repository/environment settings.
-#
-# 3. Store your ECS task definition as a JSON file in your repository.
-# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`.
-# Set the `ECS_TASK_DEFINITION` and `CONTAINER_NAME` variables in your GitHub repository/environment settings.
-#
-# 4. Configure GitHub OIDC for AWS and create an IAM role that GitHub Actions can assume.
-# Store the IAM role ARN in a GitHub Actions secret named `AWS_ROLE_ARN`.
-# See https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services
-# for setup instructions and recommended IAM policies.
-
-name: Deploy to Amazon ECS
-
-on:
- workflow_dispatch:
-
-env:
- AWS_REGION: ${{ vars.AWS_REGION }}
- ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY }}
- ECS_SERVICE: ${{ vars.ECS_SERVICE }}
- ECS_CLUSTER: ${{ vars.ECS_CLUSTER }}
- ECS_TASK_DEFINITION: ${{ vars.ECS_TASK_DEFINITION }}
- CONTAINER_NAME: ${{ vars.CONTAINER_NAME }}
-
-permissions:
- contents: read
- id-token: write
-
-jobs:
- deploy:
- name: Deploy
- runs-on: ubuntu-latest
- environment: production
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
-
- - name: Configure AWS credentials
- uses: aws-actions/configure-aws-credentials@v1
- with:
- role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
- aws-region: ${{ env.AWS_REGION }}
-
- - name: Login to Amazon ECR
- id: login-ecr
- uses: aws-actions/amazon-ecr-login@v1
-
- - name: Build, tag, and push image to Amazon ECR
- id: build-image
- env:
- ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
- IMAGE_TAG: ${{ github.sha }}
- run: |
- # Build a docker container and
- # push it to ECR so that it can
- # be deployed to ECS.
- docker build -f backend/Dockerfile -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG backend
- docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
- echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
-
- - name: Fill in the new image ID in the Amazon ECS task definition
- id: task-def
- uses: aws-actions/amazon-ecs-render-task-definition@v1
- with:
- task-definition: ${{ env.ECS_TASK_DEFINITION }}
- container-name: ${{ env.CONTAINER_NAME }}
- image: ${{ steps.build-image.outputs.image }}
-
- - name: Deploy Amazon ECS task definition
- uses: aws-actions/amazon-ecs-deploy-task-definition@v1
- with:
- task-definition: ${{ steps.task-def.outputs.task-definition }}
- service: ${{ env.ECS_SERVICE }}
- cluster: ${{ env.ECS_CLUSTER }}
- wait-for-service-stability: true
diff --git a/Bash-Scripts/run-front.sh b/Bash-Scripts/run-front.sh
index e5c0e99..a296734 100644
--- a/Bash-Scripts/run-front.sh
+++ b/Bash-Scripts/run-front.sh
@@ -77,7 +77,7 @@ if [[ -z "$LAN_IP" ]]; then
fi
if [[ -z "$MODE" ]]; then
- echo "Select backend: 1) Live (devbits.app) 2) Local (LAN IP:8080)"
+ echo "Select backend: 1) Live (devbits.ddns.net) 2) Local (LAN IP:8080)"
read -r -p "Choose [1/2]: " selection
case "$selection" in
1) MODE="production" ;;
@@ -96,8 +96,8 @@ else
unset REACT_NATIVE_PACKAGER_HOSTNAME || true
unset EXPO_PACKAGER_HOSTNAME || true
fi
-export EXPO_PUBLIC_API_URL="https://devbits.app"
-export EXPO_PUBLIC_API_FALLBACK_URL="https://devbits.app"
+export EXPO_PUBLIC_API_URL="https://devbits.ddns.net"
+export EXPO_PUBLIC_API_FALLBACK_URL="https://devbits.ddns.net"
if [[ "$MODE" == "local" ]]; then
LOCAL_API_PORT="${EXPO_PUBLIC_LOCAL_API_PORT:-8080}"
@@ -119,7 +119,7 @@ if [[ "$MODE" == "local" ]]; then
else
export EXPO_PUBLIC_USE_LOCAL_API=0
unset EXPO_PUBLIC_LOCAL_API_URL || true
- echo "Using live backend: https://devbits.app"
+ echo "Using live backend: https://devbits.ddns.net"
fi
cd "$FRONTEND_DIR"
diff --git a/INSTRUCTIONS.md b/INSTRUCTIONS.md
index b0aa2aa..78865ec 100644
--- a/INSTRUCTIONS.md
+++ b/INSTRUCTIONS.md
@@ -2,57 +2,29 @@
## Backend
-> **AWS EC2 (Amazon Linux) Native Deploy**
+> **Live/Deployed Stack**
>
> ```bash
-> # On your EC2 instance
-> sudo dnf update -y
-> sudo dnf install -y git tar
+> cd /path/to/DevBits/backend
+> docker compose up -d
+> docker compose logs -f db
> ```
->
-> Install Go 1.24.x (required by `backend/go.mod`):
->
-> ```bash
-> curl -LO https://go.dev/dl/go1.24.2.linux-amd64.tar.gz
-> sudo rm -rf /usr/local/go
-> sudo tar -C /usr/local -xzf go1.24.2.linux-amd64.tar.gz
-> echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
-> source ~/.bashrc
-> go version
-> ```
->
-> Clone and deploy:
->
-> ```bash
-> sudo mkdir -p /opt/devbits
-> sudo chown -R "$USER":"$USER" /opt/devbits
-> cd /opt/devbits
-> git clone https://github.com/devbits-go/DevBits.git .
-> git checkout aws-ready-main
-> cd backend
-> cp .env.example .env
-> # edit .env with production values (DATABASE_URL, secrets, CORS, etc.)
-> ./scripts/deploy-aws-native.sh
-> ```
->
-> Verify service:
+
+> Rebuild and restart:
>
> ```bash
-> sudo systemctl status devbits-api --no-pager
-> sudo journalctl -u devbits-api -n 120 --no-pager
-> curl -i http://127.0.0.1:8080/health
+> docker compose up -d --build
> ```
->
+
> [!TIP]
-> AWS deploy uses native `systemd` (no Docker or nginx required in production).
-> See `backend/docs/AWS_TRANSFER_NO_NGINX.md` for full runbook.
+> Check `backend/scripts/README.md` for database operations.
## Build
> **Android Production Build**
>
> ```bash
-> npx eas build -p android --profile production
+> npx --yes eas-cli build -p android --profile production
> ```
> [!NOTE]
@@ -63,11 +35,12 @@
> Replace `android` with `ios` and fill out proper credentials.
>
> ```bash
-> npx eas build -p ios --profile production
+> npx --yes eas-cli build -p ios --profile production
> ```
> [!NOTE]
-> Currently requires MY credentials. Need to add team credentials.
+> If iOS build fails with Apple 403 / PLA message, accept the latest Apple Developer Program License Agreement first:
+> https://developer.apple.com/account
## Submit
@@ -76,14 +49,18 @@
> Copy file out of expo and create new release on Google Play Console.
> [!NOTE]
-> `npx eas submit -p android` failed, so manual submission is required until fix is in place. Im not sure what is happening.
+> Use:
+> ```bash
+> npx --yes eas-cli submit -p android --latest --profile production
+> ```
+> If it fails, verify the service account key path in `frontend/eas.json` points to `../devbits-play-service-account.json` and that Google Play API access is enabled for the linked service account.
> **iOS to App Store**
>
> ```bash
-> npx eas submit -p ios --latest --profile production
+> npx --yes eas-cli submit -p ios --latest --profile production
> ```
---
-`Workflow: AWS Backend Deploy → EAS Build → EAS Submit`
+`Workflow: Backend Setup → EAS Build → EAS Submit`
diff --git a/README.md b/README.md
index d6fdc26..f3f24b3 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@
-
+