Compare commits

..

10 Commits

7 changed files with 30 additions and 9 deletions

View File

@ -2,6 +2,7 @@ FROM ruby:3.1
# Move it
WORKDIR /opt
COPY config/ ./config/
COPY public/ ./public/
COPY views/ ./views/
COPY Gemfile .
@ -17,4 +18,4 @@ RUN bundle install
EXPOSE 4567
# Send it
CMD ["bundle", "exec", "puma", "-p", "4567", "-t", "2", "-e", "production"]
CMD ["bundle", "exec", "puma", "-e", "production"]

View File

@ -7,13 +7,13 @@ GEM
puma (5.6.2)
nio4r (~> 2.0)
rack (2.2.3)
rack-protection (2.1.0)
rack-protection (2.2.0)
rack
ruby2_keywords (0.0.5)
sinatra (2.1.0)
sinatra (2.2.0)
mustermann (~> 1.0)
rack (~> 2.2)
rack-protection (= 2.1.0)
rack-protection (= 2.2.0)
tilt (~> 2.0)
tilt (2.0.10)

2
config/puma.rb Normal file
View File

@ -0,0 +1,2 @@
threads(0, `nproc`.chomp.to_i || 5)
port 4567

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -94,12 +94,12 @@ html, body {
#video {
background-image: url('/willpower.gif');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-repeat: repeat;
background-size: contain;
height: 100%;
width: 100%;
z-index: 255;
position: absolute;
position: fixed;
display: none;
}

View File

@ -1,3 +1,21 @@
<!--
###### ###### ####### ####### ### ######
# # # # # # # # # #
# # # # # # # # # #
###### ###### # # # # ######
# # # # # # # #
# # # # # # # #
# # # ####### # ### #
================================================
You can append any path you want, e.g.:
http://mywillpower.org/blog
http://mywillpower.org/religion/prayer.php
It will always return the same thing 😎
-->
<div class="modal box">
<h1>Notice:</h1>
<h2>This website uses cookies.</h2>

View File

@ -8,14 +8,14 @@
content="One man's journey to summon his own calm from within.">
<meta property="og:url" content="https://www.mywillpower.org">
<meta property="og:site_name" content="My Willpower">
<meta property="og:image" content="http://www.mywillpower.org/tip.jpg">
<meta property="og:image" content="https://www.mywillpower.org/tip.jpg">
<meta property="og:image:alt"
content="A man standing on the summit of a mountain with his arms
outstretched above his head.">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="My Willpower">
<meta name="twitter:description" content="One man's journey.">
<meta name="twitter:image" content="http://www.mywillpower.org/tip.jpg">
<meta name="twitter:image" content="https://www.mywillpower.org/tip.jpg">
<meta name="twitter:image:alt"
content="A man standing on the summit of a mountain with his arms
outstretched above his head.">