hopefully final deployment fixes
This commit is contained in:
parent
2f04f6d4ad
commit
92ce254340
8 changed files with 16 additions and 23 deletions
0
assets/common/planks_dark_tile.png
Normal file → Executable file
0
assets/common/planks_dark_tile.png
Normal file → Executable file
Before Width: | Height: | Size: 503 B After Width: | Height: | Size: 503 B |
0
assets/common/planks_light_tile.png
Normal file → Executable file
0
assets/common/planks_light_tile.png
Normal file → Executable file
Before Width: | Height: | Size: 503 B After Width: | Height: | Size: 503 B |
0
assets/common/stones_tile.png
Normal file → Executable file
0
assets/common/stones_tile.png
Normal file → Executable file
Before Width: | Height: | Size: 616 B After Width: | Height: | Size: 616 B |
6
assets/common/styles.css
Normal file → Executable file
6
assets/common/styles.css
Normal file → Executable file
|
@ -1,5 +1,5 @@
|
|||
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;
|
||||
display: flex;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ main {
|
|||
align-self: center;
|
||||
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;
|
||||
color: black;
|
||||
border-radius: 2em;
|
||||
|
@ -49,7 +49,7 @@ hr {
|
|||
border-color: black;
|
||||
border-radius: 0.5em;
|
||||
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;
|
||||
color: white;
|
||||
padding: 1em;
|
||||
|
|
19
deploy-local
19
deploy-local
|
@ -1,16 +1,9 @@
|
|||
#!/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
|
||||
find /srv/http/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 /srv/http/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 /srv/http/assets -type f -print0 | xargs -0 sed -i 's/https:\/\/assets.zdenekborovec.cz/http:\/\/assets.zdenekborovec-dev.cz/g'
|
||||
find /srv/http/assets -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:\/\/www.zdenekborovec.cz/http:\/\/www.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 docs -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:\/\/www.zdenekborovec.cz/http:\/\/www.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 assets -type f -print0 | xargs -0 sed -i 's/https:\/\/zdenekborovec.cz/http:\/\/zdenekborovec-dev.cz/g'
|
||||
|
|
|
@ -9,8 +9,8 @@ sed -i "s/TIMESTAMP/"$(date +%s)"/g" /srv/http/docs/common/header.php
|
|||
|
||||
# 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:\/\/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/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'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!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>
|
||||
#header {
|
||||
|
@ -13,7 +13,7 @@
|
|||
|
||||
#header ul {
|
||||
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;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
@ -50,8 +50,8 @@
|
|||
<div id="header">
|
||||
<h1> Zdenek Borovec Home Page </h1>
|
||||
<ul>
|
||||
<li><a href="https://www.zdenekborovec.cz">About</a></li>
|
||||
<li><a href="http://www.zdenekborovec.cz/blog">Blog</a></li>
|
||||
<li><a href="http://www.zdenekborovec-dev.cz">About</a></li>
|
||||
<li><a href="http://www.zdenekborovec-dev.cz/blog">Blog</a></li>
|
||||
<li>Gallery</li>
|
||||
<li>Random tools</li>
|
||||
</ul>
|
||||
|
|
|
@ -14,7 +14,7 @@ include_once($COMMONS."/header.php");
|
|||
Who am I?
|
||||
</h2>
|
||||
<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>
|
||||
Me at the start of a walk from Brno to Prague.
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue