Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
igobranco committed Dec 10, 2020
1 parent ac75612 commit ac98f3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@ This repository has the maintenance site.

The html, css and images are copied to a ceph bucket an showned to client if there is some error on NAU applications.

## Before deploy
Because the site don't is a fat html, it has imported css and images, and because those could be on a different location where the index.html is rendered.
So we have to update those location.

## Update site with absolute URLs
```
./update-site-url.sh https://shared.static.dev.nau.fccn.pt/maintenance-site/
```

## Update site for environment

#### remove existing site
Expand All @@ -23,7 +14,7 @@ AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXX AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYY

#### put site
```
AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXX AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY s3cmd --host 10.0.12.62 --host-bucket nau-dev-shared --no-ssl put target/* "s3://nau-dev-shared/maintenance-site/" --recursive --acl-public --no-mime-magic
AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXX AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY s3cmd --host 10.0.12.62 --host-bucket nau-dev-shared --no-ssl put site/* "s3://nau-dev-shared/maintenance-site/" --recursive --acl-public --no-mime-magic
```

#### Verify site
Expand Down
7 changes: 3 additions & 4 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}

.email {
font-size: 0.9rem;
font-size: 1.5rem;
color: var(--email-color);
}

Expand All @@ -106,7 +106,7 @@

.email a:hover {
color: #ffce35;
text-decoration-color: var(--bg-color-alt);
text-decoration-color: #ffce35;
}

.social {
Expand All @@ -117,8 +117,7 @@
.social a {
padding: 1rem 0.5rem;
color:rgba(255, 255, 255, 0.9);
font-size: 0.8rem;
font-weight: 700;
font-size: 1rem;
}

.social a:hover {
Expand Down

0 comments on commit ac98f3a

Please sign in to comment.