Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
uosyph committed Sep 20, 2022
1 parent 708d480 commit d798807
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 0 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,11 @@ jobs:
# Install, build, deploy in both apps
command: |
echo "#Install, build, deploy in both apps"
npm run api:install
echo "api build"
npm run api:build
echo "api deploy"
npm run api:deploy
echo "front int"
npm run frontend:install
echo "front build"
npm run frontend:build
echo "front:deploy"
npm run frontend:deploy
workflows:
Expand Down
8 changes: 4 additions & 4 deletions app-api/bin/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
eb init $EB_APP --region $AWS_DEFAULT_REGION
eb use App-env
# eb deploy App-env
# eb setenv POSTGRES_USERNAME=$POSTGRES_USERNAME POSTGRES_PASSWORD=$POSTGRES_PASSWORD POSTGRES_HOST=$POSTGRES_HOST POSTGRES_DB=$POSTGRES_DB POSTGRES_PORT=$POSTGRES_PORT
# eb setenv PORT=$PORT EB_APP=$EB_APP EB_ENV=$EB_ENV URL=$URL JWT_SECRET=$JWT_SECRET
# eb setenv AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY AWS_REGION=$AWS_REGION AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION AWS_PROFILE=$AWS_PROFILE AWS_BUCKET=$AWS_BUCKET
eb deploy App-env
eb setenv POSTGRES_USERNAME=$POSTGRES_USERNAME POSTGRES_PASSWORD=$POSTGRES_PASSWORD POSTGRES_HOST=$POSTGRES_HOST POSTGRES_DB=$POSTGRES_DB POSTGRES_PORT=$POSTGRES_PORT
eb setenv PORT=$PORT EB_APP=$EB_APP EB_ENV=$EB_ENV URL=$URL JWT_SECRET=$JWT_SECRET
eb setenv AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY AWS_REGION=$AWS_REGION AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION AWS_PROFILE=$AWS_PROFILE AWS_BUCKET=$AWS_BUCKET
4 changes: 2 additions & 2 deletions app-frontend/bin/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# aws s3 cp --recursive --acl public-read ./src s3://random-yousef-bucket/
# aws s3 cp --acl public-read --cache-control="max-age=0, no-cache, no-store, must-revalidate" ./src/index.html s3://random-yousef-bucket/
aws s3 cp --recursive --acl public-read ./src s3://random-yousef-bucket/
aws s3 cp --acl public-read --cache-control="max-age=0, no-cache, no-store, must-revalidate" ./src/index.html s3://random-yousef-bucket/

0 comments on commit d798807

Please sign in to comment.