Skip to content

Commit

Permalink
Add .env.example
Browse files Browse the repository at this point in the history
  • Loading branch information
forsbergplustwo committed Aug 28, 2023
1 parent 20d19bd commit 7161d8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Please keep .env.example identical to .env so that future developers know what goes into the file
5 changes: 5 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ FileUtils.chdir APP_ROOT do
# FileUtils.cp "config/database.yml.sample", "config/database.yml"
# end

puts "\n== Copying sample files =="
unless File.exist?(".env")
FileUtils.cp ".env.example", ".env"
end

puts "\n== Preparing database =="
system! "bin/rails db:prepare"

Expand Down

0 comments on commit 7161d8d

Please sign in to comment.