Guest User

Untitled

a guest
Aug 3rd, 2018
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. Rails.application.config.middleware.insert_before 0, Rack::Cors do
  2. allow do
  3. origins '127.0.0.1:4200', 'localhost:4200'
  4. resource '*',
  5. :headers => :any,
  6. :expose => ['access-token', 'expiry', 'token-type', 'uid', 'client'],
  7. :methods => [:get, :post, :options, :delete, :put]
  8. end
  9. end
  10.  
  11. default: &default
  12. adapter: oracle_enhanced
  13. database: ********************************************
  14. username: **********
  15. password: **********
  16.  
  17. development:
  18. <<: *default
  19. database: ********************************************
  20. username: **********
  21. password: **********
  22.  
  23.  
  24. test:
  25. <<: *default
  26.  
  27. production:
  28. <<: *default
  29.  
  30. source 'https://rubygems.org'
  31.  
  32. git_source(:github) do |repo_name|
  33. repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  34. "https://github.com/#{repo_name}.git"
  35. end
  36.  
  37.  
  38. # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
  39. gem 'rails', '~> 5.1.6'
  40. # Use sqlite3 as the database for Active Record
  41. gem 'ruby-oci8'
  42. gem 'activerecord-oracle_enhanced-adapter'
  43. # Use Puma as the app server
  44. gem 'puma', '~> 3.7'
  45. # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
  46. # gem 'jbuilder', '~> 2.5'
  47. # Use Redis adapter to run Action Cable in production
  48. # gem 'redis', '~> 4.0'
  49. # Use ActiveModel has_secure_password
  50. # gem 'bcrypt', '~> 3.1.7'
  51.  
  52. # Use Capistrano for deployment
  53. # gem 'capistrano-rails', group: :development
  54.  
  55. # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
  56. gem 'rack-cors'
  57.  
  58. group :development, :test do
  59. # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  60. gem 'byebug', platform: :mri
  61. end
  62.  
  63. group :development do
  64. gem 'listen', '>= 3.0.5', '< 3.2'
  65. # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  66. gem 'spring'
  67. gem 'spring-watcher-listen', '~> 2.0.0'
  68. end
  69.  
  70. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  71. gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
  72.  
  73. gem 'omniauth'
  74. gem 'devise_token_auth'
  75. gem 'devise-i18n'
  76. gem 'logs'
  77. gem 'logstasher'
  78.  
  79. group :development do
  80. gem 'capistrano', require: false
  81. gem 'capistrano-rvm', require: false
  82. gem 'capistrano-rails', require: false
  83. gem 'capistrano-bundler', require: false
  84. gem 'capistrano3-puma', require: false
  85. end
Add Comment
Please, Sign In to add comment