What this will cover
- Host a static website at S3
- Redirect
www.website.com
towebsite.com
- Website can be an SPA (requiring all requests to return
index.html
) - Free AWS SSL certs
- Deployment with CDN invalidation
sudo dnf install \
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install \
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
dnf shell
defmodule Exercise do | |
def sort_groups(employee_ids) do | |
groups = employee_ids | |
|> Enum.shuffle() | |
|> Enum.chunk_every(3, 3, []) | |
size = Enum.count(employee_ids) | |
if rem(size, 3) == 0 do | |
groups | |
else |
AllCops: | |
TargetRubyVersion: 2.6 | |
Exclude: | |
- bin/**/* | |
- db/data/**/* | |
- db/seeds.rb | |
- db/migrate/**/* | |
- db/schema.rb | |
- tmp/**/* | |
- vendor/**/* |
PreCommit: | |
StructureUpToDate: | |
enabled: true | |
description: 'Checking for schema changes' | |
include: 'priv/repo/**/*' |
defp aliases do | |
[ | |
"ecto.migrate": ["ecto.migrate", "ecto.dump"], | |
"ecto.setup": ["ecto.create", "ecto.load", "ecto.migrate", "run priv/repo/seeds.exs"], | |
"ecto.reset": ["ecto.drop", "ecto.setup"], | |
test: ["ecto.create --quiet", "ecto.load", "ecto.migrate", "test"] | |
] | |
end |
defp aliases do | |
[ | |
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"], | |
"ecto.reset": ["ecto.drop", "ecto.setup"], | |
"test": ["ecto.create --quiet", "ecto.migrate", "test"] | |
] | |
end |