Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
lumen-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3dcf4494
authored
Dec 13, 2018
by
John Doe
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug fix in development config
parent
32e82533
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
config/environments/development.rb
config/environments/development.rb
View file @
3dcf4494
...
@@ -28,12 +28,16 @@ Rails.application.configure do
...
@@ -28,12 +28,16 @@ Rails.application.configure do
end
end
# Store uploaded files on the local file system (see config/storage.yml for options)
# Store uploaded files on the local file system (see config/storage.yml for options)
config
.
active_storage
.
service
=
:local
#
config.active_storage.service = :local
# Don't care if the mailer can't send.
# Don't care if the mailer can't send.
config
.
action_mailer
.
raise_delivery_errors
=
false
config
.
action_mailer
.
raise_delivery_errors
=
false
config
.
action_mailer
.
perform_caching
=
false
config
.
action_mailer
.
perform_caching
=
false
config
.
action_mailer
.
default_url_options
=
{
:host
=>
'localhost:3000'
}
config
.
action_mailer
.
delivery_method
=
:smtp
config
.
action_mailer
.
smtp_settings
=
{
:address
=>
"localhost"
,
:port
=>
1025
}
# Print deprecation notices to the Rails logger.
# Print deprecation notices to the Rails logger.
config
.
active_support
.
deprecation
=
:log
config
.
active_support
.
deprecation
=
:log
...
@@ -51,4 +55,19 @@ Rails.application.configure do
...
@@ -51,4 +55,19 @@ Rails.application.configure do
# Use an evented file watcher to asynchronously detect changes in source code,
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
# routes, locales, etc. This feature depends on the listen gem.
config
.
file_watcher
=
ActiveSupport
::
EventedFileUpdateChecker
config
.
file_watcher
=
ActiveSupport
::
EventedFileUpdateChecker
config
.
middleware
.
insert_before
0
,
Rack
::
Cors
do
allow
do
origins
'*'
resource
'*'
,
:headers
=>
:any
,
:expose
=>
[
'access-token'
,
'expiry'
,
'token-type'
,
'uid'
,
'client'
],
:methods
=>
[
:get
,
:post
,
:options
,
:delete
,
:put
]
end
end
config
.
interface_url_template
=
lambda
do
|
id
|
#return "http://#{id}.interfaces.wattsworth.local"
return
"http://wattsworth.local/api/interfaces/
#{
id
}
/"
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment