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
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ group :test do
gem "capybara"
gem "selenium-webdriver"
end

gem "dockerfile-rails", ">= 1.7", group: :development
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ GEM
debug (1.11.1)
irb (~> 1.10)
reline (>= 0.3.8)
dockerfile-rails (1.7.10)
rails (>= 3.0.0)
dotenv (3.2.0)
drb (2.2.3)
ed25519 (1.4.0)
Expand Down Expand Up @@ -368,6 +370,7 @@ DEPENDENCIES
brakeman
capybara
debug
dockerfile-rails (>= 1.7)
importmap-rails
jbuilder
kamal
Expand Down
4 changes: 4 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,19 @@ production:
primary:
<<: *default
database: storage/production.sqlite3
url: <%= ENV["DATABASE_URL"] %>
cache:
<<: *default
database: storage/production_cache.sqlite3
migrations_paths: db/cache_migrate
url: <%= URI.parse(ENV["DATABASE_URL"]).tap { |url| url.path += "_cache" } if ENV["DATABASE_URL"] %>
queue:
<<: *default
database: storage/production_queue.sqlite3
migrations_paths: db/queue_migrate
url: <%= URI.parse(ENV["DATABASE_URL"]).tap { |url| url.path += "_queue" } if ENV["DATABASE_URL"] %>
cable:
<<: *default
database: storage/production_cable.sqlite3
migrations_paths: db/cable_migrate
url: <%= URI.parse(ENV["DATABASE_URL"]).tap { |url| url.path += "_cable" } if ENV["DATABASE_URL"] %>
6 changes: 6 additions & 0 deletions config/dockerfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# generated by dockerfile-rails

---
options:
label:
fly_launch_runtime: rails
38 changes: 38 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# fly.toml app configuration file generated for utpin on 2026-02-22T14:56:12Z
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'utpin'
primary_region = 'iad'
console_command = '/rails/bin/rails console'

[build]

[env]
DATABASE_URL = 'sqlite3:///data/production.sqlite3'
PORT = '8080'

[processes]
app = './bin/rails server'

[[mounts]]
source = 'data'
destination = '/data'
auto_extend_size_threshold = 80
auto_extend_size_increment = '1GB'
auto_extend_size_limit = '10GB'

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 0
processes = ['app']

[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
memory_mb = 1024
Loading