Skip to content

Commit

Permalink
Rails6 fixture: Add all missing rails_env config
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed May 2, 2019
1 parent bc2d928 commit 1c070b2
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/fixtures/rails6/app/config/cable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ development:
test:
adapter: test

rails_env:
adapter: async

production:
adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
Expand Down
4 changes: 4 additions & 0 deletions features/fixtures/rails6/app/config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ test:
production:
<<: *default
database: db/production.sqlite3

rails_env:
<<: *default
database: db/rails_env.sqlite3
5 changes: 5 additions & 0 deletions features/fixtures/rails6/app/config/webpack/rails_env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
process.env.NODE_ENV = process.env.NODE_ENV || 'rails_env'

const environment = require('./environment')

module.exports = environment.toWebpackConfig()
26 changes: 26 additions & 0 deletions features/fixtures/rails6/app/config/webpacker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,32 @@ development:
watch_options:
ignored: '**/node_modules/**'

rails_env:
<<: *default
compile: true

# Verifies that versions and hashed value of the package contents in the project's package.json
check_yarn_integrity: false

# Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
host: localhost
port: 3035
public: localhost:3035
hmr: false
# Inline should be set to true if using HMR
inline: true
overlay: true
compress: true
disable_host_check: true
use_local_ip: false
quiet: false
headers:
'Access-Control-Allow-Origin': '*'
watch_options:
ignored: '**/node_modules/**'


test:
<<: *default
Expand Down

0 comments on commit 1c070b2

Please sign in to comment.