Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

#7 deploy test environment: update config #31

Merged
merged 3 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
## SERVER VARIABLES ##
DB_USER=chapter2DbUserTest
DB_PASSWORD=F5AE91DF45asdfaf-43523BE526488AA
DB_NAME=chapter2test
DB_URL=localhost
# If running a local setup make sure to set DB_PORT=5432
#DB_PORT=54320
DB_PORT=5432
DATABASE_URL=postgres://${DB_USER}:${DB_PASSWORD}@${DB_URL}:${DB_PORT}/${DB_NAME}
USE_AUTH0=false

[email protected]
EMAIL_USERNAME=project.1
EMAIL_PASSWORD=secret.1
EMAIL_SERVICE=emailServicePlaceholder
EMAIL_HOST=localhost

# Required if EMAIL_SERVICE is "ses"
SES_ACCESS_KEY_ID=
SES_SECRET_ACCESS_KEY=

# Required if EMAIL_SERVICE is "sendgrid"
SENDGRID_KEY=

NODE_ENV=production

# change this variable to at least 32 random characters
# to enforce 256-bit cryto security on Auth0's JsonWebToken
UNSUBSCRIBE_SECRET=muda9d6a89sd6hjasdsdtERU78546moaisda98na0%&§86eqnw9dasd23543

# When running remotely, this should be the full url of the landing page
CLIENT_LOCATION=0.0.0.0:3000

AUTH0_AUDIENCE=IdentifierFromAuth0Dash
AUTH0_DOMAIN=chapter2-dev.eu.auth0.com

# Auth0 test user
#AUTH0_TEST_USER=
#AUTH0_TEST_PW=

SESSION_SECRET=aasdmaod7lnJSAOdzha8d7tsi8d6a783q428934728934:_235484723rfhn
COOKIE_DOMAIN=localhost

## CLIENT VARIABLES ##
NEXT_PUBLIC_USE_AUTH0=${USE_AUTH0}
NEXT_PUBLIC_AUTH0_DOMAIN=${AUTH0_DOMAIN}
#NEXT_PUBLIC_AUTH0_CLIENT_ID=YOUR-AUTH0-APP-CLIENT-ID
NEXT_PUBLIC_AUTH0_CLIENT_ID=i4AfbGQ5yjwyBK6HT5PGFwtdXx1u4Uxl
NEXT_PUBLIC_AUTH0_AUDIENCE=${AUTH0_AUDIENCE}
NEXT_PUBLIC_SERVER_URL=0.0.0.0:5000
NEXT_PUBLIC_CLIENT_URL=${CLIENT_LOCATION}
NEXT_PUBLIC_DEPLOYMENT_ENVIRONMENT=staging
# CODESEE=true
2 changes: 1 addition & 1 deletion .github/workflows/ci-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [20.x]
node-version: [20.16]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
browsers: [chrome] # [chrome, firefox] # deactivated firefox due to timeout issues
node-version: [20.x]
node-version: [20.16]
steps:
- name: Set Action Environment Variables
run: |
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:

- name: Upload screenshots
uses: actions/upload-artifact@v4
if: failure()
if: ${{ failure() }}
with:
name: cypress-screenshots
path: cypress/screenshots
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ jobs:
npm ci -w=client --ignore-scripts
npm run build -w=client
echo "### install and build client finished"
supervisorctl stop chapter2-test-server-daemon
supervisorctl stop chapter2-test-client-daemon
supervisorctl start chapter2-test-server-daemon
supervisorctl start chapter2-test-client-daemon
echo "### server and client daemons started"
2 changes: 1 addition & 1 deletion .github/workflows/update-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [20.x]
node-version: [20.16]
services:
postgres:
image: postgres:16
Expand Down
84 changes: 52 additions & 32 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@aws-sdk/client-ses": "3.632.0",
"@cypress/code-coverage": "3.10.4",
"@googleapis/calendar": "2.0.0",
"@prisma/client": "5.18.0",
"@prisma/client": "^5.19.0",
"@sendgrid/mail": "7.7.0",
"apollo-server-express": "3.13.0",
"calendar-link": "^2.7.0",
Expand Down Expand Up @@ -72,7 +72,7 @@
"lodash": "4.17.21",
"node-dev": "7.4.3",
"nyc": "15.1.0",
"prisma": "5.18.0",
"prisma": "^5.19.0",
"rimraf": "3.0.2",
"supertest": "6.3.3",
"typescript": "5.0.4"
Expand Down
Loading