Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server
web: bundle exec puma -C config/puma.rb

# https://devcenter.heroku.com/articles/release-phase
release: ./bin/heroku-release
3 changes: 3 additions & 0 deletions app/controllers/messages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ def index

page = params[:page].to_i
list_ids = get_list_ids(params)
if list_ids.empty?
raise "Need to select at least one list"
end

# %> and <-> are defined by pg_trgm.
# https://www.postgresql.org/docs/17/pgtrgm.html
Expand Down
2 changes: 1 addition & 1 deletion app/views/messages/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
].each do |name, label|
%>
<span>
<%= form.check_box name, {checked: params[name] == '1' } %>
<%= form.check_box name, {checked: params[name] != '0' } %>
<%= form.label name, label %>
</span>
<% end %>
Expand Down
6 changes: 6 additions & 0 deletions bin/heroku-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /bin/bash
set -euo pipefail

bundle exec rake db:migrate

env