refactor: Move main website files to a subfolder
Moved the main HTML/CSS files into a dedicated subfolder and updated deployment configuration accordingly.
This commit is contained in:
parent
9d58e1f8ee
commit
ace57324b1
12 changed files with 6 additions and 8 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -1,4 +1,4 @@
|
|||
book
|
||||
blog/*
|
||||
blog/
|
||||
src
|
||||
content/*
|
||||
content-minimal/*
|
||||
example/*
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
authors = ["Matthew Binning"]
|
||||
language = "en"
|
||||
multilingual = false
|
||||
src = "content"
|
||||
title = "The Bin"
|
||||
|
||||
[build]
|
||||
|
|
|
|||
|
|
@ -4,11 +4,9 @@ set -e
|
|||
|
||||
# Build the blog with mdbook before deploying
|
||||
printf "Building blog with mdbook...\n"
|
||||
[ -s src ] || ln -s /var/lib/www src
|
||||
mdbook build
|
||||
|
||||
# Common files to deploy (shared between staging and prod)
|
||||
DEPLOY_FILES="blog includes index.html menu.html resume.html style.css 404.html cover.jpg"
|
||||
|
||||
# Usage information
|
||||
usage() {
|
||||
printf "Usage: %s [staging|prod]\n\n staging - Deploy to local staging environment (/srv/www/stage.binning.net)\n prod - Deploy to production server via SSH (www.binning.net)\n\nExample:\n %s staging\n %s prod\n" "$0" "$0" "$0"
|
||||
|
|
@ -34,7 +32,8 @@ case $ENV in
|
|||
|
||||
# Deploy website files via rsync
|
||||
printf "Deploying website files...\n"
|
||||
sudo rsync -av --delete ${DEPLOY_FILES} ${STAGING_PATH}/
|
||||
sudo rsync -av --delete main/* ${STAGING_PATH}/
|
||||
sudo rsync -av --delete blog ${STAGING_PATH}/
|
||||
|
||||
# Set proper ownership
|
||||
sudo chown -R nginx:nginx ${STAGING_PATH}/
|
||||
|
|
|
|||
BIN
main/cover.jpg
Normal file
BIN
main/cover.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 182 KiB |
Loading…
Add table
Add a link
Reference in a new issue