Skip to content

Commit

Permalink
Merge pull request #47 from rtCamp/develop
Browse files Browse the repository at this point in the history
Adding new demos to PS Demo site
  • Loading branch information
fellyph authored Feb 13, 2024
2 parents f5d4c2d + 4a301d1 commit 6f7a618
Show file tree
Hide file tree
Showing 39 changed files with 853 additions and 133 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ domain-b-background=bg-blue-100
domain-c=localhost # domain-ccc.com
domain-c-background=bg-red-100
port=8080 # port to listen on
google-client-id= # google client id
1 change: 1 addition & 0 deletions .github/deploy/addon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ handle_after_build(){
remote_execute "$APP_PATH" "ln -sfn $RELEASE_FOLDER_NAME current"
info "Restarting server"
remote_execute "$REMOTE_PATH" 'docker compose restart server'
remote_execute "$REMOTE_PATH" 'docker compose up -d server'
}

retain_releases(){
Expand Down
5 changes: 5 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ app.use((req, res, next) => {
res.locals.domainA = process.env['domain-a'];
res.locals.domainB = process.env['domain-b'];
res.locals.domainC = process.env['domain-c'];
res.locals.googleClientId = process.env['google-client-id'];
res.locals.port = process.env.port;
res.locals.isPortPresent = req.get('host').includes(':');
res.locals.currentDomain = req.get( 'host' );
Expand Down Expand Up @@ -66,6 +67,10 @@ const scenarios = [
'analytics',
'embedded-video',
'payment-gateway',
'personalization',
'personalization-localstorage',
'gsi',
'social-media'
];
scenarios.forEach(scenario => {
const scenarioRoutes = require(`./src/scenarios/${scenario}/routes`);
Expand Down
235 changes: 235 additions & 0 deletions package-lock.json

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

Loading

0 comments on commit 6f7a618

Please sign in to comment.