infra updates
This commit is contained in:
@@ -5,6 +5,14 @@ Qwaiter::Application.configure do
|
||||
# every request. This slows down response time but is perfect for development
|
||||
# since you don't have to restart the web server when you make code changes.
|
||||
config.cache_classes = false
|
||||
config.middleware.insert_before 0, Rack::Cors do
|
||||
allow do
|
||||
origins 'localhost', 'supplier.mozo.local', 'user.mozo.local', 'events.mozo.local'
|
||||
#resource '/user/*', :headers => '*', :methods => '*' #[:get, :post, :options]
|
||||
resource '*', headers: :any, methods: [:get, :post, :put, :patch, :delete, :options]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
# Do not eager load code on boot.
|
||||
config.eager_load = false
|
||||
|
||||
@@ -4,6 +4,14 @@ Qwaiter::Application.configure do
|
||||
# Code is not reloaded between requests
|
||||
config.cache_classes = true
|
||||
|
||||
config.middleware.insert_before 0, Rack::Cors do
|
||||
allow do
|
||||
origins 'localhost', 'supplier.mozo.bar', 'user.mozo.bar', 'events.mozo.bar'
|
||||
#resource '/user/*', :headers => '*', :methods => '*' #[:get, :post, :options]
|
||||
resource '*', headers: :any, methods: [:get, :post, :put, :patch, :delete, :options]
|
||||
end
|
||||
end
|
||||
|
||||
# Eager load code on boot. This eager loads most of Rails and
|
||||
# your application in memory, allowing both thread web servers
|
||||
# and those relying on copy on write to perform better.
|
||||
|
||||
Reference in New Issue
Block a user