Compare commits

..

3 commits

Author SHA1 Message Date
Jessica Canady d3960c0746
Fly.toml fix? 2024-08-25 15:59:28 -04:00
Jessica Canady a89aac1f6d
Title the blog pages. 2024-08-25 15:56:46 -04:00
Jessica Canady a3459135ba
Try to fix fly deploys :( 2024-08-25 15:56:38 -04:00
2 changed files with 23 additions and 18 deletions

View file

@ -19,11 +19,15 @@ kill_signal = 'SIGTERM'
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 0
processes = ['app']
[[http_service.checks]]
timeout = "30s"
grace_period = "5s"
[http_service.concurrency]
type = 'connections'
hard_limit = 1000

View file

@ -4,10 +4,11 @@ defmodule JOLWeb.BlogController do
alias JOL.Blog
def index(conn, _params) do
render(conn, "index.html", posts: Blog.recent_posts())
render(conn, "index.html", page_title: "You Asked For Posts", posts: Blog.recent_posts())
end
def show(conn, %{"slug" => slug}) do
render(conn, "show.html", post: Blog.get_post_by_slug!(slug))
post = Blog.get_post_by_slug!(slug)
render(conn, "show.html", page_title: post.title, post: post)
end
end