This commit is contained in:
12
Dockerfile
12
Dockerfile
@ -1,9 +1,11 @@
|
|||||||
FROM ruby:2.7.1
|
FROM ruby:2.7.8
|
||||||
|
|
||||||
RUN apt-get update -qq &&\
|
# Point to Debian archive repos instead of the dead ones
|
||||||
curl -sL https://deb.nodesource.com/setup_10.x | bash - &&\
|
|
||||||
apt-get install -y build-essential libpq-dev nodejs &&\
|
RUN apt-get update -qq && \
|
||||||
useradd --user-group --create-home --shell /bin/false app
|
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
|
||||||
|
apt-get install -y build-essential libpq-dev nodejs && \
|
||||||
|
useradd --user-group --create-home --shell /bin/false app
|
||||||
|
|
||||||
ENV HOME=/home/app
|
ENV HOME=/home/app
|
||||||
USER app
|
USER app
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<strong>Halley Research Station</strong><br>
|
<strong>Klostergasse 8</strong><br>
|
||||||
Brunt Ice Shelf<br>
|
42897 Remscheid<br>
|
||||||
Antarctica
|
Deutschland
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div id="welcome-index-footer-cta" class="col-md-12 text-center">
|
<div id="welcome-index-footer-cta" class="col-md-12 text-center">
|
||||||
<%= link_to 'RSVP TODAY!', new_guest_path, class: 'btn btn-primary wedding-cta-btn' %>
|
<%= link_to 'JETZT ANMELDEN!', new_guest_path, class: 'btn btn-primary wedding-cta-btn' %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<%= t :wedding_date %>, <%= t :wedding_location %>
|
<%= t :wedding_date %>, <%= t :wedding_location %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<%= link_to 'RSVP TODAY!', new_guest_path, class: 'btn btn-primary wedding-cta-btn' %>
|
<%= link_to 'JETZT ANMELDEN!', new_guest_path, class: 'btn btn-primary wedding-cta-btn' %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="offset-md-3 col-md-6">
|
<div class="offset-md-3 col-md-6">
|
||||||
<h2>Order of the Day</h2>
|
<h2>Order of the Day</h2>
|
||||||
<p><strong>12:30pm</strong> — Guests arrive</p>
|
<p><strong>16:00</strong> — Guests arrive</p>
|
||||||
<p><strong>1pm</strong> — Wedding service</p>
|
<p><strong>1pm</strong> — Wedding service</p>
|
||||||
<p><strong>1:30pm</strong> — Cocktails, photos, confetti and canapes</p>
|
<p><strong>1:30pm</strong> — Cocktails, photos, confetti and canapes</p>
|
||||||
<p><strong>3pm-6pm</strong> — Food and drink</p>
|
<p><strong>3pm-6pm</strong> — Food and drink</p>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 text-center">
|
<div class="col-md-12 text-center">
|
||||||
<h1>When & Where</h1>
|
<h1>Wann? & Wo?</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -11,11 +11,11 @@
|
|||||||
<%= render partial: 'calendar_svg' %>
|
<%= render partial: 'calendar_svg' %>
|
||||||
<%- end %></h2>
|
<%- end %></h2>
|
||||||
<p>
|
<p>
|
||||||
<strong>12:30pm – late</strong><br>
|
<strong>16:00 – offen</strong><br>
|
||||||
<%= t :wedding_date %><br>
|
<%= t :wedding_date %><br>
|
||||||
<br>
|
<br>
|
||||||
</p>
|
</p>
|
||||||
<p><%= link_to 'Add to Calendar', 'wedding.ics' %></p>
|
<p><%= link_to 'Zum Kalender hinzufügen', 'wedding.ics' %></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 text-center">
|
<div class="col-md-6 text-center">
|
||||||
<h2><%= link_to @google_maps_url do -%>
|
<h2><%= link_to @google_maps_url do -%>
|
||||||
|
@ -8,6 +8,21 @@ Rails.application.configure do
|
|||||||
# since you don't have to restart the web server when you make code changes.
|
# since you don't have to restart the web server when you make code changes.
|
||||||
config.cache_classes = false
|
config.cache_classes = false
|
||||||
|
|
||||||
|
Rails.application.routes.default_url_options[:host] = ENV.fetch("APP_HOST", "0.0.0.0")
|
||||||
|
Rails.application.routes.default_url_options[:port] = ENV.fetch("APP_PORT", 3000)
|
||||||
|
|
||||||
|
# Force Rails to generate URLs with your hostname instead of localhost
|
||||||
|
Rails.application.routes.default_url_options = {
|
||||||
|
host: ENV.fetch("APP_HOST", "beere5"),
|
||||||
|
port: ENV.fetch("APP_PORT", 3000)
|
||||||
|
}
|
||||||
|
|
||||||
|
# Force Rails to generate URLs with your hostname instead of localhost
|
||||||
|
Rails.application.routes.default_url_options = {
|
||||||
|
host: ENV.fetch("APP_HOST", "wedding.linepe.de"),
|
||||||
|
port: ENV.fetch("APP_PORT", 3000)
|
||||||
|
}
|
||||||
|
|
||||||
# Do not eager load code on boot.
|
# Do not eager load code on boot.
|
||||||
config.eager_load = false
|
config.eager_load = false
|
||||||
|
|
||||||
@ -64,4 +79,4 @@ Rails.application.configure do
|
|||||||
config.action_mailer.default_url_options = {
|
config.action_mailer.default_url_options = {
|
||||||
host: ENV['CANONICAL_HOST'], port: 3000
|
host: ENV['CANONICAL_HOST'], port: 3000
|
||||||
}
|
}
|
||||||
end
|
end
|
@ -6,6 +6,21 @@ Rails.application.configure do
|
|||||||
# Code is not reloaded between requests.
|
# Code is not reloaded between requests.
|
||||||
config.cache_classes = true
|
config.cache_classes = true
|
||||||
|
|
||||||
|
Rails.application.routes.default_url_options[:host] = ENV.fetch("APP_HOST", "0.0.0.0")
|
||||||
|
Rails.application.routes.default_url_options[:port] = ENV.fetch("APP_PORT", 3000)
|
||||||
|
|
||||||
|
# Force Rails to generate URLs with your hostname instead of localhost
|
||||||
|
Rails.application.routes.default_url_options = {
|
||||||
|
host: ENV.fetch("APP_HOST", "beere5"),
|
||||||
|
port: ENV.fetch("APP_PORT", 3000)
|
||||||
|
}
|
||||||
|
|
||||||
|
# Force Rails to generate URLs with your hostname instead of localhost
|
||||||
|
Rails.application.routes.default_url_options = {
|
||||||
|
host: ENV.fetch("APP_HOST", "wedding.linepe.de"),
|
||||||
|
port: ENV.fetch("APP_PORT", 3000)
|
||||||
|
}
|
||||||
|
|
||||||
# Eager load code on boot. This eager loads most of Rails and
|
# Eager load code on boot. This eager loads most of Rails and
|
||||||
# your application in memory, allowing both threaded web servers
|
# your application in memory, allowing both threaded web servers
|
||||||
# and those relying on copy on write to perform better.
|
# and those relying on copy on write to perform better.
|
||||||
|
@ -8,6 +8,20 @@ Rails.application.configure do
|
|||||||
# your test database is "scratch space" for the test suite and is wiped
|
# your test database is "scratch space" for the test suite and is wiped
|
||||||
# and recreated between test runs. Don't rely on the data there!
|
# and recreated between test runs. Don't rely on the data there!
|
||||||
config.cache_classes = true
|
config.cache_classes = true
|
||||||
|
Rails.application.routes.default_url_options[:host] = ENV.fetch("APP_HOST", "0.0.0.0")
|
||||||
|
Rails.application.routes.default_url_options[:port] = ENV.fetch("APP_PORT", 3000)
|
||||||
|
|
||||||
|
# Force Rails to generate URLs with your hostname instead of localhost
|
||||||
|
Rails.application.routes.default_url_options = {
|
||||||
|
host: ENV.fetch("APP_HOST", "beere5"),
|
||||||
|
port: ENV.fetch("APP_PORT", 3000)
|
||||||
|
}
|
||||||
|
|
||||||
|
# Force Rails to generate URLs with your hostname instead of localhost
|
||||||
|
Rails.application.routes.default_url_options = {
|
||||||
|
host: ENV.fetch("APP_HOST", "wedding.linepe.de"),
|
||||||
|
port: ENV.fetch("APP_PORT", 3000)
|
||||||
|
}
|
||||||
|
|
||||||
# Do not eager load code on boot. This avoids loading your whole application
|
# Do not eager load code on boot. This avoids loading your whole application
|
||||||
# just for the purpose of running a single test. If you are using a tool that
|
# just for the purpose of running a single test. If you are using a tool that
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
# available at http://guides.rubyonrails.org/i18n.html.
|
# available at http://guides.rubyonrails.org/i18n.html.
|
||||||
|
|
||||||
en:
|
en:
|
||||||
wedding_name: "Jack & Jill's Wedding"
|
wedding_name: "Caro & Rene's freie Trauung"
|
||||||
wedding_couple_names: 'Jack & Jill'
|
wedding_couple_names: 'Caro & Rene'
|
||||||
wedding_date: 'Saturday, 1 January 2000'
|
wedding_date: 'Samstag, 25 April 2025'
|
||||||
wedding_location: 'South Pole'
|
wedding_location: 'Klosterkirche, Remscheid'
|
||||||
photo_credits: 'Photo Credits: Pexels'
|
photo_credits: 'Photo Credits: Rene'
|
||||||
|
@ -10,11 +10,11 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20180804103058) do
|
ActiveRecord::Schema.define(version: 2018_08_04_103058) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
|
||||||
enable_extension "citext"
|
enable_extension "citext"
|
||||||
|
enable_extension "plpgsql"
|
||||||
|
|
||||||
create_table "active_admin_comments", force: :cascade do |t|
|
create_table "active_admin_comments", force: :cascade do |t|
|
||||||
t.string "namespace"
|
t.string "namespace"
|
||||||
|
@ -9,8 +9,10 @@ services:
|
|||||||
- '5432:5432'
|
- '5432:5432'
|
||||||
|
|
||||||
web:
|
web:
|
||||||
|
environment:
|
||||||
|
CANONICAL_URL: beere5:3033, wedding.linepe.de
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- '3000:3000'
|
- '3033:3000'
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
|
Reference in New Issue
Block a user