Skip to content

Commit

Permalink
feat: #27 Change S3 bucket to klavostat.com. Added script that copies…
Browse files Browse the repository at this point in the history
… the error page to old bucket.
  • Loading branch information
dmitry-weirdo committed Jan 3, 2021
1 parent 3af59d1 commit 4a59fea
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
5 changes: 5 additions & 0 deletions kgparserWeb/copy-to-s3-old-bucket.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
AWS_PROFILE=dpopov-admin-kgparser
BUCKET_NAME=kgparser-web

aws s3 cp ./src/main/webapp/error.html s3://$BUCKET_NAME/stats.html --profile=$AWS_PROFILE
aws s3 cp ./src/main/webapp/error.html s3://$BUCKET_NAME --profile=$AWS_PROFILE
14 changes: 13 additions & 1 deletion kgparserWeb/copy-to-s3.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# todo: move stat web sources to a separate module, copy like /js/*, /css/*, *.html etc, not one-by-one

AWS_PROFILE=dpopov-admin-kgparser
BUCKET_NAME=kgparser-web
BUCKET_NAME=klavostat.com

aws s3 cp ./src/main/webapp/ s3://$BUCKET_NAME --profile=$AWS_PROFILE --recursive


#aws s3 cp ./src/main/webapp/_top-by-chars.html s3://$BUCKET_NAME --profile=$AWS_PROFILE
#aws s3 cp ./src/main/webapp/_top_by_races_count_in_noerror.html s3://$BUCKET_NAME --profile=$AWS_PROFILE
#aws s3 cp ./src/main/webapp/_top_by_races_count_in_normal.html s3://$BUCKET_NAME --profiple=$AWS_PROFILE
#aws s3 cp ./src/main/webapp/_top_by_races_count_in_marathon.html s3://$BUCKET_NAME --profile=$AWS_PROFILE
#aws s3 cp ./src/main/webapp/_top_by_best_speed_voc-40933.html s3://$BUCKET_NAME --profile=$AWS_PROFILE
#aws s3 cp ./src/main/webapp/_top_by_best_speed_voc-62238.html s3://$BUCKET_NAME --profile=$AWS_PROFILE
#aws s3 cp ./src/main/webapp/_players-with-hidden-stats.html s3://$BUCKET_NAME --profile=$AWS_PROFILE
#aws s3 cp ./src/main/webapp/_vocabularies_by_total_races_count.html s3://$BUCKET_NAME --profile=$AWS_PROFILE
#aws s3 cp ./src/main/webapp/_vocabularies_by_total_players_count.html s3://$BUCKET_NAME --profile=$AWS_PROFILE
#aws s3 cp ./src/main/webapp/error.html s3://$BUCKET_NAME --profile=$AWS_PROFILE
13 changes: 13 additions & 0 deletions kgparserWeb/src/main/webapp/error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Произошла ошибка</title>
<link rel="stylesheet" type="text/css" href="./css/stats.css">
<link rel="shortcut icon" href="img/favicon/favicon.ico"/>
</head>
<body>
<main>
<h2>Вас занесло куда-то не туда :( Сайт переехал на <a href="http://klavostat.com">klavostat.com</a>. Возможно, стоит обратить свой взор туда.</h2>
</main>
</body>

0 comments on commit 4a59fea

Please sign in to comment.