Skip to content

Commit 83dce77

Browse files
committed
Wordpress-vs-Hugo
1 parent bea4306 commit 83dce77

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+5433
-0
lines changed

wordpress-vs-hugo/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## WordPress vs. HUGO
2+
3+
These sample applications compare a very simple Wordpress website with the
4+
default template to a copy of that website generated with HUGO.
5+
6+
The research question is to compare the energy for accessing a Wordpress site
7+
vs. a static site from HUGO.
8+
9+
Additionally we have looked at the energy for generating the HUGO page in the build
10+
process, so check out the https://github.com/green-coding-berlin/wordpress-static
11+
repository.
12+
13+
14+
## Measurements
15+
16+
You can find all the measurements on https://metrics.green-coding.org/ by searching
17+
for the repository URL.
18+
19+
If you want to run the measurements locally to falsify be sure to append the
20+
`--allow-unsafe` flag if you are measuring the **wordpress-minimal** site.
21+
22+
23+
## Showcase
24+
25+
Look at our Showcase where we analyze the data: https://www.green-coding.org/showcases/wordpress-vs-hugo
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM httpd
2+
EXPOSE 9875
3+
4+
COPY ./html /var/www/html
5+
COPY ./hugo-static.conf /etc/apache2/sites-enabled/hugo-static.conf
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM mariadb:10.6.4-focal
2+
COPY ./wordpress-dump.sql /docker-entrypoint-initdb.d/wordpress-dump.sql
3+
EXPOSE 3306
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Introduction
2+
This orchestration is based on the official images of [MariaDB](https://hub.docker.com/_/mariadb)
3+
and [PHP](https://hub.docker.com/_/php)
4+
5+
If you need more modules in your PHP installation please refer to their documentation
6+
how to install them.
7+
8+
In our Dockerfile you see an example of how to install `mysqli`
9+
10+
## Using this example application.
11+
12+
In this application we provide no sample `usage_scenario.json`.
13+
14+
It is just a demo app that shows how to containerize your architecture from scratch if you are in a Apache-PHP-MariaDB setup.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
services:
2+
hugo-apache:
3+
image: httpd
4+
container_name: hugo-apache-container
5+
restart: always
6+
ports:
7+
- 8080:80
8+
volumes:
9+
- ./wordpress.conf:/etc/apache2/sites-enabled/wordpress.conf:ro
10+
- ./htdocs:/usr/local/apache2/htdocs
11+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>Categories on My new Hugo site</title>
5+
<link>http://wordpress-static.pages.dev/categories/</link>
6+
<description>Recent content in Categories on My new Hugo site</description>
7+
<generator>Hugo -- gohugo.io</generator>
8+
<language>en-us</language><atom:link href="http://wordpress-static.pages.dev/categories/index.xml" rel="self" type="application/rss+xml" />
9+
</channel>
10+
</rss>

wordpress-vs-hugo/hugo-apache/htdocs/contact/index.html

Lines changed: 245 additions & 0 deletions
Large diffs are not rendered by default.

wordpress-vs-hugo/hugo-apache/htdocs/css/hovercard.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wordpress-vs-hugo/hugo-apache/htdocs/css/jetpack.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)