Skip to content

Commit

Permalink
Fix deployment scripts, minify base.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vitusventure committed Sep 20, 2018
1 parent 8fcaaf5 commit 22a439f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 47 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ docs/spellcasting/spell_lists
docs/spellcasting/spell_indexes
docs/gamemaster_rules/magic_item_indexes
docs/gamemaster_rules/monster_indexes
__pycache__
*.pyc
42 changes: 1 addition & 41 deletions 5thsrd_theme/js/base.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 5thsrd_theme/main.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% set version_id = "3a9a40" %}
{% set version_id = "8fcaaf" %}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
4 changes: 2 additions & 2 deletions build_to_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

git pull

python build_indexes.py
python3 build_indexes.py

mkdocs build --clean

aws s3 sync ./site/ s3://5thsrd.org-test/ --region="us-east-1"
aws s3 sync ./site/ s3://5thsrd.org-test/ --region="us-east-1" --delete
6 changes: 3 additions & 3 deletions deploy_to_prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
git pull

# Generate offline indexes
python build_indexes.py --offline
python3 build_indexes.py --offline

# Build the offline site
mkdocs build --clean --config-file offline_build_config.yml

# Generate regular indexes
python build_indexes.py
python3 build_indexes.py

# Build the site
mkdocs build --clean
Expand All @@ -21,7 +21,7 @@ zip -r /tmp/5thsrd_offline.zip 5thsrd_offline/
mv /tmp/5thsrd_offline.zip ./site/

# Sync to S3
aws s3 sync ./site/ s3://5thsrd.org/ --region="us-east-1"
aws s3 sync ./site/ s3://5thsrd.org/ --region="us-east-1" --delete

# Set Cache-Control on static resources
s3cmd modify --recursive s3://5thsrd.org/css/ --add-header=Cache-Control:max-age=604800 -v
Expand Down

0 comments on commit 22a439f

Please sign in to comment.