Compare commits

..

No commits in common. "d3960c0746b559d63bb89b0bce4f36eb449a7615" and "bc483e6fdea4954af5ebce4434b2f81b1ad84e08" have entirely different histories.

2 changed files with 18 additions and 23 deletions

View file

@ -10,30 +10,26 @@ kill_signal = 'SIGTERM'
[build]
[deploy]
release_command = '/app/bin/migrate'
release_command = '/app/bin/migrate'
[env]
PHX_HOST = 'jol.fly.dev'
PORT = '8080'
PHX_HOST = 'jol.fly.dev'
PORT = '8080'
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 0
processes = ['app']
internal_port = 8080
force_https = true
auto_stop_machines = true
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
soft_limit = 1000
[http_service.concurrency]
type = 'connections'
hard_limit = 1000
soft_limit = 1000
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
memory = '1gb'
cpu_kind = 'shared'
cpus = 1

View file

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