Skip to content

Commit

Permalink
Merge pull request #6 from maxproctor/add_deviser
Browse files Browse the repository at this point in the history
add devise
  • Loading branch information
maxproctor authored Feb 26, 2025
2 parents e260764 + e425b84 commit 858846f
Show file tree
Hide file tree
Showing 10 changed files with 595 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,11 @@ group :test do
gem "capybara"
gem "selenium-webdriver"
end

gem "dockerfile-rails", ">= 1.7", :group => :development

Check failure on line 59 in Gemfile

View workflow job for this annotation

GitHub Actions / lint

Style/HashSyntax: Use the new Ruby 1.9 hash syntax.

gem "litestream", "~> 0.12.0"

gem "aws-sdk-s3", "~> 1.182", :require => false

Check failure on line 63 in Gemfile

View workflow job for this annotation

GitHub Actions / lint

Style/HashSyntax: Use the new Ruby 1.9 hash syntax.

gem "devise", "~> 4.9"
70 changes: 70 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,25 @@ GEM
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.2)
aws-eventstream (1.3.1)
aws-partitions (1.1056.0)
aws-sdk-core (3.219.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
base64
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.99.0)
aws-sdk-core (~> 3, >= 3.216.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.182.0)
aws-sdk-core (~> 3, >= 3.216.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
aws-sigv4 (1.11.0)
aws-eventstream (~> 1, >= 1.0.2)
base64 (0.2.0)
bcrypt (3.1.20)
benchmark (0.4.0)
bigdecimal (3.1.9)
bindex (0.8.1)
Expand All @@ -100,6 +118,14 @@ GEM
debug (1.10.0)
irb (~> 1.10)
reline (>= 0.3.8)
devise (4.9.4)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
dockerfile-rails (1.7.9)
rails (>= 3.0.0)
drb (2.2.1)
erubi (1.13.1)
globalid (1.2.1)
Expand All @@ -118,9 +144,43 @@ GEM
jbuilder (2.13.0)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jmespath (1.6.2)
json (2.10.1)
language_server-protocol (3.17.0.4)
lint_roller (1.1.0)
litestream (0.12.0)
actionpack (>= 7.0)
actionview (>= 7.0)
activejob (>= 7.0)
activesupport (>= 7.0)
logfmt (>= 0.0.10)
railties (>= 7.0)
sqlite3
litestream (0.12.0-arm64-darwin)
actionpack (>= 7.0)
actionview (>= 7.0)
activejob (>= 7.0)
activesupport (>= 7.0)
logfmt (>= 0.0.10)
railties (>= 7.0)
sqlite3
litestream (0.12.0-x86_64-darwin)
actionpack (>= 7.0)
actionview (>= 7.0)
activejob (>= 7.0)
activesupport (>= 7.0)
logfmt (>= 0.0.10)
railties (>= 7.0)
sqlite3
litestream (0.12.0-x86_64-linux)
actionpack (>= 7.0)
actionview (>= 7.0)
activejob (>= 7.0)
activesupport (>= 7.0)
logfmt (>= 0.0.10)
railties (>= 7.0)
sqlite3
logfmt (0.0.10)
logger (1.6.6)
loofah (2.24.0)
crass (~> 1.0.2)
Expand Down Expand Up @@ -161,6 +221,7 @@ GEM
racc (~> 1.4)
nokogiri (1.18.3-x86_64-linux-musl)
racc (~> 1.4)
orm_adapter (0.5.0)
parallel (1.26.3)
parser (3.3.7.1)
ast (~> 2.4.1)
Expand Down Expand Up @@ -219,6 +280,9 @@ GEM
regexp_parser (2.10.0)
reline (0.6.0)
io-console (~> 0.5)
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
rexml (3.4.1)
rubocop (1.73.0)
json (~> 2.3)
Expand Down Expand Up @@ -285,6 +349,8 @@ GEM
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
useragent (0.16.11)
warden (1.2.9)
rack (>= 2.0.9)
web-console (4.2.1)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
Expand All @@ -311,12 +377,16 @@ PLATFORMS
x86_64-linux-musl

DEPENDENCIES
aws-sdk-s3 (~> 1.182)
bootsnap
brakeman
capybara
debug
devise (~> 4.9)
dockerfile-rails (>= 1.7)
importmap-rails
jbuilder
litestream (~> 0.12.0)
puma (>= 5.0)
rails (~> 7.2.2, >= 7.2.2.1)
rubocop-rails-omakase
Expand Down
8 changes: 8 additions & 0 deletions config/dockerfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# generated by dockerfile-rails

---
options:
label:
fly_launch_runtime: rails
litestream: true
tigris: true
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX

# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
# Store uploaded files in Tigris Global Object Storage (see config/storage.yml for options).
config.active_storage.service = :tigris

# Mount Action Cable outside main process or domain.
# config.action_cable.mount_path = nil
Expand Down
Loading

0 comments on commit 858846f

Please sign in to comment.