-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve azure deploy process (version-control & consolidate config) #2834
Comments
Click to see diff...diff --git a/frontend/.apache_env b/frontend/.apache_env
index 4c1a4ac55..d3f7d78e9 100644
--- a/frontend/.apache_env
+++ b/frontend/.apache_env
@@ -5,4 +5,6 @@ OAUTH_POST_LOGOUT_REDIRECT="http://localhost:8000/admin"
# OAUTH_LOGOUT_URI="https://te-auth.id.tbs-sct.gc.ca/oxauth/restv1/end_session"
# Feature flags
+FEATURE_PHPINFO=true
+FEATURE_IAP=true
FEATURE_APPLICANTPROFILE=true
diff --git a/infrastructure/php-container/src/.htaccess b/infrastructure/php-container/src/.htaccess
index 332e9f294..9b4f18b2b 100644
--- a/infrastructure/php-container/src/.htaccess
+++ b/infrastructure/php-container/src/.htaccess
@@ -39,11 +39,12 @@ DirectorySlash off
# Send localized talent requests also to talentsearch dist folder;
RewriteRule ^(en|fr)/talent(/(.*))?$ frontend/talentsearch/dist/$3 [L]
- # Indigenous Apprenticeship routes
- RewriteRule ^indigenous-it-apprentice(/(.*))?$ frontend/indigenousapprenticeship/dist/$2 [L]
- RewriteRule ^(en|fr)/indigenous-it-apprentice(/(.*))?$ frontend/indigenousapprenticeship/dist/$3 [L]
+ # Indigenous Apprenticeship routes (feature-flagged)
+ RewriteCond expr "'%{ENV:FEATURE_IAP}' == 'true'"
+ RewriteRule ^((en|fr)/)?indigenous-it-apprentice(/(.*))?$ frontend/indigenousapprenticeship/dist/$4 [L]
- # PHP Info page for debugging
+ # PHP Info page for debugging (feature-flagged)
+ RewriteCond expr "'%{ENV:FEATURE_PHPINFO}' == 'true'"
RewriteRule ^phpinfo.php$ phpinfo.php [L]
# Send all other requests to /tc-report |
This issue is being prioritized because we hit the character limit on the way we're currently generating the htaccess file in Azure. We should just be importing it from the repo instead! |
Estimating as a 5 due to general uncertainty around how this will work. |
Solution in #3513 |
Woof, this issue is too big! I think it should be broken up. |
Remaining todos split off into #3571 |
Re-ticketed from #2683
Goals:
setup.sh
scripts indeploy.sh
Potential To Dos
infrastructure/deploy.sh
in favour of improvedinfrastructure/bin/deploy.sh
infrastructure/php-container/src/.htaccess
andinfrastructure/conf/deploy.htaccess
fence off indigenous apprenticeship endpoints withFEATURE_IAP
feature flaginfrastructure/php-container/src/.htaccess
?)deploy.sh
to use new file above.htaccess
files (htaccess isn't recommended, and nginx doesn't do anything like it)...infrastructure/conf/
?)setup.sh
to copy files from this single dir during setupazure-pipelines.yml
works/exists for staging + productiondeploy.sh
in CI environment (maybe scheduled? maybe on commits to mainline?)Open Questions
azure-pipeline.yml
for staging and production pipelines? If so, do we want the other in here?The text was updated successfully, but these errors were encountered: