Skip to content

Commit

Permalink
Rename internals from vigilant-sniffle to symptomradar.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarno Rantanen committed Mar 23, 2020
1 parent 930f1f5 commit 7aa88df
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
REACT_APP_API_ENDPOINT: https://api.dev.vigilant-sniffle.com/
AWS_DEFAULT_REGION: eu-west-1
REACT_APP_API_ENDPOINT: https://api.dev.oiretutka.fi/
run: |
sudo apt-get install -y awscli
npm install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# vigilant-sniffle
# symptomradar
2 changes: 1 addition & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vigilant-sniffle-frontend",
"name": "symptomradar-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>vigilant-sniffle</title>
<title>symptomradar</title>
</head>
<body>
<noscript>Tämä sivusto vaatii JavaScript-tuen toimiakseen.</noscript>
<pre>vigilant-sniffle</pre>
<pre>symptomradar</pre>
</body>
</html>
2 changes: 1 addition & 1 deletion frontend/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import './index.css';

console.log('vigilant-sniffle', { API_ENDPOINT: process.env.REACT_APP_API_ENDPOINT });
console.log('symptomradar', { API_ENDPOINT: process.env.REACT_APP_API_ENDPOINT });
10 changes: 5 additions & 5 deletions scripts/deploy-backend
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ BACKEND_DIR="$SELF_DIR/../backend"
# Upload code to S3
aws s3 cp \
backend/dist/backend-lambda.zip \
"s3://vigilant-sniffle-$1-backend-code/"
"s3://symptomradar-$1-backend-code/"

# Let Lambda know function code has been updated
aws lambda update-function-code \
--function-name "vigilant-sniffle-$1-backend-api" \
--s3-bucket "vigilant-sniffle-$1-backend-code" \
--function-name "symptomradar-$1-backend-api" \
--s3-bucket "symptomradar-$1-backend-code" \
--s3-key backend-lambda.zip
aws lambda update-function-code \
--function-name "vigilant-sniffle-$1-backend-worker" \
--s3-bucket "vigilant-sniffle-$1-backend-code" \
--function-name "symptomradar-$1-backend-worker" \
--s3-bucket "symptomradar-$1-backend-code" \
--s3-key backend-lambda.zip
4 changes: 2 additions & 2 deletions scripts/deploy-frontend
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ FRONTEND_DIR="$SELF_DIR/../frontend"
aws s3 cp \
--cache-control=max-age=86400 \
--recursive \
frontend/build/static/ "s3://vigilant-sniffle-$1-frontend-code/static/"
frontend/build/static/ "s3://symptomradar-$1-frontend-code/static/"
rm -rfv "$FRONTEND_DIR/build/static"

# Upload & clean up files that need to be served fresh
aws s3 cp \
--cache-control=no-store,must-revalidate \
--recursive \
frontend/build/ "s3://vigilant-sniffle-$1-frontend-code/"
frontend/build/ "s3://symptomradar-$1-frontend-code/"
rm -rfv "$FRONTEND_DIR/build"

0 comments on commit 7aa88df

Please sign in to comment.