Skip to content

Commit

Permalink
Chore: Update Top Level App files to be inline with latest Rails Apps
Browse files Browse the repository at this point in the history
Because:
* It helps with upgrades and avoiding bugs.

This commit:
* Update .gitignore file to be inline with recent rails apps
* Update config.ru file to latest syntax.
* Update Rakefile to latest syntax.
* Add .gitattributes which is included in latest Rails apps.
* Remove dump.rdb file
  • Loading branch information
KevinMulhern committed Jun 26, 2022
1 parent 818a634 commit 079b367
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 55 deletions.
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# Mark the database schema as having been generated.
db/schema.rb linguist-generated

# Mark the yarn lockfile as having been generated.
yarn.lock linguist-generated

# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
66 changes: 14 additions & 52 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal


# Ignore any assets that may have been precompiled locally
# e.g. to test run the production environment locally
/public/assets
/db/*.sqlite3-*

# Ignore all logfiles and tempfiles.
/log/*
Expand All @@ -27,57 +22,24 @@
!/tmp/pids/
!/tmp/pids/.keep

# scm revert files
**.orig

# Mac finder artifacts
.DS_Store

# Netbeans project directory
/nbproject/
# Ignore uploaded files in development.
/storage/*
!/storage/.keep

# RubyMine project files
.idea
/.idea/*

# Textmate project files
/*.tmproj
/public/assets
.byebug_history

# vim artifacts
**.swp
# Ignore master key for decrypting credentials and more.
/config/master.key

# VS Code artifacts
/.vscode
# Mac finder artifacts
.DS_Store

# Ignore application configuration
/config/application.yml
/config/database.yml
# Ignore env files.
.env*

# secret token
.secret
config/secrets.yml

# additional
.project
*~

# from Github Rails.gitignore
*.rbc
*.sassc
.sass-cache
capybara-*.html
.rspec
/public/system
# Ignore test coverage reports.
/coverage/
/spec/tmp
rerun.txt
pickle-email-*.html
/vendor/bundle
=======
# Versioning
.rvmrc
.tool-versions

/public/packs
/public/packs-test
Expand Down
3 changes: 1 addition & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('config/application', __dir__)
require_relative 'config/application'

Rails.application.load_tasks
4 changes: 3 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('config/environment', __dir__)
require_relative 'config/environment'

run Rails.application
Rails.application.load_server
Binary file removed dump.rdb
Binary file not shown.

0 comments on commit 079b367

Please sign in to comment.