hopefully final deployment fixes

This commit is contained in:
Zdenek Borovec 2023-12-21 17:20:36 +01:00
parent 2f04f6d4ad
commit 92ce254340
8 changed files with 16 additions and 23 deletions

0
assets/common/planks_dark_tile.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 503 B

After

Width:  |  Height:  |  Size: 503 B

0
assets/common/planks_light_tile.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 503 B

After

Width:  |  Height:  |  Size: 503 B

0
assets/common/stones_tile.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 616 B

After

Width:  |  Height:  |  Size: 616 B

6
assets/common/styles.css Normal file → Executable file
View file

@ -1,5 +1,5 @@
body { body {
background-image: url("https://assets.zdenekborovec.cz/common/stones_tile.png"); background-image: url("http://assets.zdenekborovec-dev.cz/common/stones_tile.png");
background-repeat: repeat; background-repeat: repeat;
display: flex; display: flex;
} }
@ -14,7 +14,7 @@ main {
align-self: center; align-self: center;
margin: auto; margin: auto;
background-image: url("https://assets.zdenekborovec.cz/common/planks_light_tile.png"); background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_light_tile.png");
background-repeat: repeat; background-repeat: repeat;
color: black; color: black;
border-radius: 2em; border-radius: 2em;
@ -49,7 +49,7 @@ hr {
border-color: black; border-color: black;
border-radius: 0.5em; border-radius: 0.5em;
float: right; float: right;
background-image: url("https://assets.zdenekborovec.cz/common/planks_dark_tile.png"); background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_dark_tile.png");
background-repeat: repeat; background-repeat: repeat;
color: white; color: white;
padding: 1em; padding: 1em;

View file

@ -1,16 +1,9 @@
#!/bin/sh #!/bin/sh
# Copy the docs and assets directories onto the server
cp -r docs /srv/http
cp -r assets /srv/http
# Update the header css GET parameter
sed -i "s/TIMESTAMP/"$(date +%s)"/g" /srv/http/docs/common/header.php
# Replace localhost addresses with proper # Replace localhost addresses with proper
find /srv/http/docs -type f -print0 | xargs -0 sed -i 's/https:\/\/www.zdenekborovec.cz/http:\/\/www.zdenekborovec-dev.cz/g' find docs -type f -print0 | xargs -0 sed -i 's/https:\/\/www.zdenekborovec.cz/http:\/\/www.zdenekborovec-dev.cz/g'
find /srv/http/docs -type f -print0 | xargs -0 sed -i 's/https:\/\/assets.zdenekborovec.cz/http:\/\/assets.zdenekborovec-dev.cz/g' find docs -type f -print0 | xargs -0 sed -i 's/https:\/\/assets.zdenekborovec.cz\/common/http:\/\/assets.zdenekborovec-dev.cz\/common/g'
find /srv/http/docs -type f -print0 | xargs -0 sed -i 's/https:\/\/zdenekborovec.cz/http:\/\/zdenekborovec-dev.cz/g' find docs -type f -print0 | xargs -0 sed -i 's/https:\/\/zdenekborovec.cz/http:\/\/zdenekborovec-dev.cz/g'
find /srv/http/assets -type f -print0 | xargs -0 sed -i 's/https:\/\/www.zdenekborovec.cz/http:\/\/www.zdenekborovec-dev.cz/g' find assets -type f -print0 | xargs -0 sed -i 's/https:\/\/www.zdenekborovec.cz/http:\/\/www.zdenekborovec-dev.cz/g'
find /srv/http/assets -type f -print0 | xargs -0 sed -i 's/https:\/\/assets.zdenekborovec.cz/http:\/\/assets.zdenekborovec-dev.cz/g' find assets -type f -print0 | xargs -0 sed -i 's/https:\/\/assets.zdenekborovec.cz\/common/http:\/\/assets.zdenekborovec-dev.cz\/common/g'
find /srv/http/assets -type f -print0 | xargs -0 sed -i 's/https:\/\/zdenekborovec.cz/http:\/\/zdenekborovec-dev.cz/g' find assets -type f -print0 | xargs -0 sed -i 's/https:\/\/zdenekborovec.cz/http:\/\/zdenekborovec-dev.cz/g'

View file

@ -9,8 +9,8 @@ sed -i "s/TIMESTAMP/"$(date +%s)"/g" /srv/http/docs/common/header.php
# Replace localhost addresses with proper # Replace localhost addresses with proper
find /srv/http/docs -type f -print0 | xargs -0 sed -i 's/http:\/\/www.zdenekborovec-dev.cz/https:\/\/www.zdenekborovec.cz/g' find /srv/http/docs -type f -print0 | xargs -0 sed -i 's/http:\/\/www.zdenekborovec-dev.cz/https:\/\/www.zdenekborovec.cz/g'
find /srv/http/docs -type f -print0 | xargs -0 sed -i 's/http:\/\/assets.zdenekborovec-dev.cz/https:\/\/assets.zdenekborovec.cz/g' find /srv/http/docs -type f -print0 | xargs -0 sed -i 's/http:\/\/assets.zdenekborovec-dev.cz\/common/https:\/\/assets.zdenekborovec.cz\/common/g'
find /srv/http/docs -type f -print0 | xargs -0 sed -i 's/http:\/\/zdenekborovec-dev.cz/https:\/\/zdenekborovec.cz/g' find /srv/http/docs -type f -print0 | xargs -0 sed -i 's/http:\/\/zdenekborovec-dev.cz/https:\/\/zdenekborovec.cz/g'
find /srv/http/assets -type f -print0 | xargs -0 sed -i 's/http:\/\/www.zdenekborovec-dev.cz/https:\/\/www.zdenekborovec.cz/g' find /srv/http/assets -type f -print0 | xargs -0 sed -i 's/http:\/\/www.zdenekborovec-dev.cz/https:\/\/www.zdenekborovec.cz/g'
find /srv/http/assets -type f -print0 | xargs -0 sed -i 's/http:\/\/assets.zdenekborovec-dev.cz/https:\/\/assets.zdenekborovec.cz/g' find /srv/http/assets -type f -print0 | xargs -0 sed -i 's/http:\/\/assets.zdenekborovec-dev.cz\/common/https:\/\/assets.zdenekborovec.cz\/common/g'
find /srv/http/assets -type f -print0 | xargs -0 sed -i 's/http:\/\/zdenekborovec-dev.cz/https:\/\/zdenekborovec.cz/g' find /srv/http/assets -type f -print0 | xargs -0 sed -i 's/http:\/\/zdenekborovec-dev.cz/https:\/\/zdenekborovec.cz/g'

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<link rel="stylesheet" href="https://assets.zdenekborovec.cz/common/styles.css?TIMESTAMP"> <link rel="stylesheet" href="http://assets.zdenekborovec-dev.cz/common/styles.css?1703173954">
<style> <style>
#header { #header {
@ -13,7 +13,7 @@
#header ul { #header ul {
background-color: #202020; background-color: #202020;
background-image: url("https://assets.zdenekborovec.cz/common/planks_dark_tile.png"); background-image: url("http://assets.zdenekborovec-dev.cz/common/planks_dark_tile.png");
background-repeat: repeat; background-repeat: repeat;
padding: 0; padding: 0;
margin: 0; margin: 0;
@ -50,8 +50,8 @@
<div id="header"> <div id="header">
<h1> Zdenek Borovec Home Page </h1> <h1> Zdenek Borovec Home Page </h1>
<ul> <ul>
<li><a href="https://www.zdenekborovec.cz">About</a></li> <li><a href="http://www.zdenekborovec-dev.cz">About</a></li>
<li><a href="http://www.zdenekborovec.cz/blog">Blog</a></li> <li><a href="http://www.zdenekborovec-dev.cz/blog">Blog</a></li>
<li>Gallery</li> <li>Gallery</li>
<li>Random tools</li> <li>Random tools</li>
</ul> </ul>

View file

@ -14,7 +14,7 @@ include_once($COMMONS."/header.php");
Who am I? Who am I?
</h2> </h2>
<div class="image-container" style="max-width: 20em"> <div class="image-container" style="max-width: 20em">
<img src="https://assets.zdenekborovec.cz/upload/1d21313c-ca12-4cdd-8943-a19ef5602a9c/8e34af81-a431-42f3-b984-020fda40498f.png" alt="A photo of me."/> <img src="http://assets.zdenekborovec.cz/upload/1d21313c-ca12-4cdd-8943-a19ef5602a9c/8e34af81-a431-42f3-b984-020fda40498f.png" alt="A photo of me."/>
<p> <p>
Me at the start of a walk from Brno to Prague. Me at the start of a walk from Brno to Prague.
</p> </p>