-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrails_template.rb
More file actions
78 lines (63 loc) · 1.56 KB
/
Copy pathrails_template.rb
File metadata and controls
78 lines (63 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# refs: https://guides.rubyonrails.org/rails_application_templates.html
# rubocop:disable Layout/HeredocIndentation
gem_file = <<~GEM_FILE
source "https://rubygems.org"
ruby file: ".ruby-version"
gem "rails", "~> 8.0.2", ">= 8.0.2.1"
# Drivers
# gem "sqlite3", ">= 2.1"
# gem "pg", "~> 1.5"
# Deployment
gem "puma", ">= 5.0"
gem "bootsnap", require: false
gem "thruster", require: false
gem "kamal", require: false
# Front-end
gem "propshaft"
gem "importmap-rails"
gem "turbo-rails"
gem "stimulus-rails"
# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable
gem "solid_cache"
gem "solid_queue"
gem "solid_cable"
# Job mission
# gem "mission_control-jobs"
# Other
gem "jbuilder"
gem "bcrypt", "~> 3.1.7"
gem "tzinfo-data", platforms: %i[ windows jruby ]
gem "image_processing", "~> 1.2"
gem "faraday"
group :development, :test do
gem "debug", platforms: %i[ mri windows ], require: false
gem "brakeman", require: false
gem "rubocop-rails-omakase", require: false
gem "erb_lint", require: false
gem "dotenv-rails"
end
group :development do
gem "hotwire-livereload"
gem "letter_opener"
gem "web-console"
end
group :test do
gem "capybara"
gem "selenium-webdriver"
end
GEM_FILE
# rubocop:enable Layout/HeredocIndentation
run "echo '#{gem_file}' > Gemfile"
run "echo '# #{@app_name.titleize}' > README.md"
# run "bundle lock --add-platform x86_64-linux"
git :init
git add: "."
git commit: %Q{ -m 'Initial commit' }
run <<~COMMANDS
echo 'Run `rails dev`'
echo ''
echo '---'
echo 'cd #{@app_name}'
echo './bin/dev'
echo '---'
COMMANDS