Skip to content

Commit

Permalink
Fix homepage for nightly (#175)
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya authored May 2, 2024
1 parent c607073 commit 2feedcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nightly-playground/lib/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export class Routing extends Stack {
proxy_set_header X-Forwarded-Proto $scheme; # Set the X-Forwarded-Proto header
}
}`),
InitFile.fromFileInline('/usr/share/nginx/html/index.html', join(__dirname, '../resources/assets/ngnix-index.html')),
InitFile.fromFileInline('/usr/share/nginx/html/index_nightly.html', join(__dirname, '../resources/assets/ngnix-index.html')),
InitCommand.shellCommand('cp /usr/share/nginx/html/index_nightly.html /usr/share/nginx/html/index.html'),
InitCommand.shellCommand('sudo systemctl start nginx'),
InitCommand.shellCommand('sudo systemctl enable nginx'),
];
Expand Down
5 changes: 4 additions & 1 deletion nightly-playground/test/nightly-playground.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,12 @@ test('ngnix load balancer and ASG resources', () => {
command: "openssl req -x509 -nodes -newkey rsa:4096 -keyout /etc/nginx/cert.key -out /etc/nginx/cert.crt -days 365 -subj '/CN=SH'",
},
'002': {
command: 'sudo systemctl start nginx',
command: 'cp /usr/share/nginx/html/index_nightly.html /usr/share/nginx/html/index.html',
},
'003': {
command: 'sudo systemctl start nginx',
},
'004': {
command: 'sudo systemctl enable nginx',
},
},
Expand Down

0 comments on commit 2feedcd

Please sign in to comment.