Skip to content

Commit

Permalink
Create the skeleton directories needed and ignore accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Jul 31, 2017
1 parent 9d12683 commit e814042
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions railties/lib/rails/generators/rails/app/app_generator.rb
Expand Up @@ -178,6 +178,11 @@ def public_directory
directory "public", "public", recursive: false
end

def storage
empty_directory_with_keep_file "storage"
empty_directory_with_keep_file "tmp/storage"
end

def test
empty_directory_with_keep_file "test/fixtures"
empty_directory_with_keep_file "test/fixtures/files"
Expand Down
3 changes: 3 additions & 0 deletions railties/lib/rails/generators/rails/app/templates/gitignore
Expand Up @@ -21,6 +21,9 @@
!/tmp/.keep
<% end -%>

# Ignore uploaded files in development
/storage/*

<% unless options[:skip_yarn] -%>
/node_modules
/yarn-error.log
Expand Down

0 comments on commit e814042

Please sign in to comment.