-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into VACMS-15838-breadcrumbs-followup
- Loading branch information
Showing
31 changed files
with
665 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!-- This is a Jinja2 template without a *.j2 extension because it isn't testable in a browser with *.j2. --> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Next-build Preview not built yet</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta http-equiv="refresh" content="2" /> | ||
|
||
<style> | ||
body { | ||
/* VA.gov dark blue */ | ||
background: #112e51; | ||
text-align: center; | ||
color: white; | ||
} | ||
|
||
p { | ||
font-size: large; | ||
} | ||
|
||
a { | ||
text-decoration: underline; | ||
color: white; | ||
} | ||
|
||
.hero { | ||
margin-top: 25px; | ||
width: 70%; | ||
height: 20%; | ||
object-fit: cover; | ||
object-position: 0 80%; | ||
} | ||
|
||
.container-info { | ||
margin-bottom: 100px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<img class="hero" src="/.next/artur-pokusin-unsplash.jpg"> | ||
<h1>Next-build not ready yet</h1> | ||
<div class="container-info"> | ||
<p>The next-build server is not built & running yet.</p> | ||
<p>Check the status of the <code>composer va:next:start</code> command in the logs to learn more.</p> | ||
</div> | ||
<footer>Photo by <a href="https://unsplash.com/@arturpokusin?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Artur Pokusin</a> on <a href="https://unsplash.com/s/photos/void?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a> | ||
</footer> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!-- This is a Jinja2 template without a *.j2 extension because it isn't testable in a browser with *.j2. --> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Next-build Preview Server 503 Error</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta http-equiv="refresh" content="2" /> | ||
|
||
<style> | ||
body { | ||
/* VA.gov dark blue */ | ||
background: #112e51; | ||
text-align: center; | ||
color: white; | ||
} | ||
|
||
p { | ||
font-size: large; | ||
} | ||
|
||
a { | ||
text-decoration: underline; | ||
color: white; | ||
} | ||
|
||
.hero { | ||
margin-top: 25px; | ||
width: 70%; | ||
height: 20%; | ||
object-fit: cover; | ||
object-position: 0 80%; | ||
} | ||
|
||
.container-info { | ||
margin-bottom: 100px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<img class="hero" src="/.next/artur-pokusin-unsplash.jpg"> | ||
<h1>Next-build server 503 response</h1> | ||
<div class="container-info"> | ||
<p>There was a 503 error returned from the next-build server when it asked for this route.</p> | ||
<p>Check the status of the <code>composer va:next:start</code> command in the logs to learn more.</p> | ||
</div> | ||
<footer>Photo by <a href="https://unsplash.com/@arturpokusin?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Artur Pokusin</a> on <a href="https://unsplash.com/s/photos/void?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a> | ||
</footer> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See /.tugboat/vhost-next.conf. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# If testing changes to this file on the tugboatqa/php:7.1-apache image (current), | ||
# use `apache2ctl -S` to check for syntax issues then `killall apache2` to get changes to take. | ||
# Or "Stop" then "Start" the preview as that will restart apache2 too. Worth noting that | ||
# `service apache2 reload|restart` doesn't work on this image as `runit` is used. | ||
# Also `sv restart apache` acts like it works but it doesn't and doesn't bubble up any errors. | ||
|
||
<VirtualHost *:80> | ||
|
||
ServerName next-wildcard | ||
# Route preview URLs with prefix of `next-` to folder where the generated site output is symlinked. | ||
# e.g. https://next-msecydk1vl7ncmpkgh8vevjhzq25vacv.ci.cms.va.gov/ | ||
ServerAlias next-* | ||
VirtualDocumentRoot /var/lib/tugboat/docroot/next/.next | ||
|
||
Alias "/.next" "/var/lib/tugboat/.next" | ||
ErrorDocument 403 /.next/403-error-document.html | ||
ErrorDocument 503 /.next/503-error-document.html | ||
|
||
<Directory /var/lib/tugboat/docroot/next/.next/> | ||
Options FollowSymLinks | ||
Require all granted | ||
</Directory> | ||
|
||
<Directory /var/lib/tugboat/.next/> | ||
Require all granted | ||
</Directory> | ||
|
||
ProxyPreserveHost on | ||
# Ignore redirecting error doc directory | ||
ProxyPass /.next/ ! | ||
# Redirect requests to the running node server from next-build | ||
ProxyPass / http://localhost:3000/ | ||
ProxyPassReverse / http://localhost:3000/ | ||
|
||
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn, | ||
# error, crit, alert, emerg. | ||
# It is also possible to configure the loglevel for particular | ||
# modules, e.g. | ||
#LogLevel debug | ||
|
||
# On Tugboat these are symlinks to /dev/null by default. | ||
# `rm /var/log/apache2/*.log` and they will be generated. | ||
# Then `tail -f /var/log/apache2/*` will work. | ||
ErrorLog ${APACHE_LOG_DIR}/error.log | ||
CustomLog ${APACHE_LOG_DIR}/access.log combined | ||
|
||
SetEnvIf X-Forwarded-Proto "^https" HTTPS=on | ||
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.