Skip to content

Commit

Permalink
Add fly for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
iarobinson committed Nov 29, 2023
1 parent 511877f commit 8d5bbf0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ group :test do
end

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem "dockerfile-rails", ">= 1.5", :group => :development
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ GEM
responders
warden (~> 1.2.3)
diff-lcs (1.5.0)
dockerfile-rails (1.5.12)
rails (>= 3.0.0)
dotenv (2.8.1)
dotenv-rails (2.8.1)
dotenv (= 2.8.1)
Expand Down Expand Up @@ -210,6 +212,8 @@ GEM
nio4r (2.6.1)
nokogiri (1.15.5-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.15.5-x86_64-linux)
racc (~> 1.4)
orm_adapter (0.5.0)
pg (1.5.4)
pry (0.14.2)
Expand Down Expand Up @@ -320,6 +324,7 @@ GEM

PLATFORMS
x86_64-darwin-22
x86_64-linux

DEPENDENCIES
aws-sdk-s3
Expand All @@ -329,6 +334,7 @@ DEPENDENCIES
cucumber-rails
database_cleaner
devise
dockerfile-rails (>= 1.5)
dotenv-rails
friendly_id (~> 5.4.0)
image_processing (~> 1.2)
Expand Down
22 changes: 22 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# fly.toml app configuration file generated for image-hawk on 2023-11-29T14:31:37-06:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "image-hawk"
primary_region = "ord"
console_command = "/rails/bin/rails console"

[build]

[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]

[[statics]]
guest_path = "/app/public"
url_prefix = "/"

0 comments on commit 8d5bbf0

Please sign in to comment.