Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Språksamlingane
beta.ordbok.uib.no
Commits
e4601e37
Commit
e4601e37
authored
4 years ago
by
Ole Voldsæter
Browse files
Options
Downloads
Patches
Plain Diff
redirect til api/index.html
parent
4f413d09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-1
4 additions, 1 deletion
.gitlab-ci.yml
aws/beta.ordbok.uib.no_stack.yaml
+5
-1
5 additions, 1 deletion
aws/beta.ordbok.uib.no_stack.yaml
with
9 additions
and
2 deletions
.gitlab-ci.yml
+
4
−
1
View file @
e4601e37
...
...
@@ -28,7 +28,10 @@ deploy:
--capabilities CAPABILITY_IAM
-
aws s3 rm "s3://${STACK_NAME}.aws.uib.no" --recursive
-
aws s3 sync dist/ "s3://${STACK_NAME}.aws.uib.no" --delete
-
aws s3api put-object --bucket "${STACK_NAME}.aws.uib.no" --key api/index.html --body api_static/index.html
-
aws s3api put-object --bucket "${STACK_NAME}.aws.uib.no"
--key api/index.html
--body api_static/index.html
--content-type "text/html;charset=UTF-8"
-
DISTRO_ID=$(aws cloudformation describe-stack-resource
--stack-name ${STACK_NAME}
--logical-resource-id Distribution
...
...
This diff is collapsed.
Click to expand it.
aws/beta.ordbok.uib.no_stack.yaml
+
5
−
1
View file @
e4601e37
...
...
@@ -143,6 +143,10 @@ Resources:
-
HEAD
Compress
:
true
TargetOriginId
:
s3ProductionBucket
LambdaFunctionAssociations
:
-
EventType
:
viewer-request
IncludeBody
:
false
LambdaFunctionARN
:
"
arn:aws:lambda:us-east-1:156160966877:function:path_rewrite:7"
ForwardedValues
:
QueryString
:
'
false'
Cookies
:
...
...
@@ -165,7 +169,7 @@ Resources:
LambdaFunctionAssociations
:
-
EventType
:
viewer-request
IncludeBody
:
false
LambdaFunctionARN
:
"
arn:aws:lambda:us-east-1:156160966877:function:path_rewrite:
2
"
LambdaFunctionARN
:
"
arn:aws:lambda:us-east-1:156160966877:function:path_rewrite:
7
"
ForwardedValues
:
QueryString
:
true
Cookies
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment