Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Nov 27, 2024
1 parent ef9f4fe commit ec680c6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Ignore all environment files.
/.env*
!/.env*.erb
!/.env*.example
!/.env*.sample

# Ignore all default key files.
/config/master.key
Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Ignore all environment files.
/.env*
!/.env*.erb
!/.env*.example
!/.env*.sample

# Ignore all logfiles and tempfiles.
/log/*
Expand All @@ -38,7 +38,7 @@
/config/credentials/*.yml.enc

# Ignore all config files
/config/cable.yml
/config/database.yml
/config/solid_cache.yml
/config/solid_queue.yml
/config/cable.yml
/config/cache.yml
/config/queue.yml
20 changes: 16 additions & 4 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,22 @@ FileUtils.chdir APP_ROOT do
puts "== Installing dependencies =="
system("bundle check") || system!("bundle install")

# puts "\n== Copying sample files =="
# unless File.exist?("config/database.yml")
# FileUtils.cp "config/database.yml.sample", "config/database.yml"
# end
puts "\n== Copying sample files =="
unless File.exist?("config/database.yml")
FileUtils.cp "config/database.yml.sample", "config/database.yml"
end
unless File.exist?("config/cable.yml")
FileUtils.cp "config/cable.yml.sample", "config/cable.yml"
end
unless File.exist?("config/queue.yml")
FileUtils.cp "config/queue.yml.sample", "config/queue.yml"
end
unless File.exist?("config/queue.yml")
FileUtils.cp "config/queue.yml.sample", "config/queue.yml"
end

puts "\n== Generating credential files =="
system! "EDITOR=cat bin/rails credentials:edit"

puts "\n== Preparing database =="
system! "bin/rails db:prepare"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ec680c6

Please sign in to comment.