Browse Source

Add sandbox env config

pull/180/head
baarkerlounger 3 years ago
parent
commit
f992567c35
  1. 2
      .github/workflows/pipeline.yml
  2. 3
      config/database.yml
  3. 34
      config/webpacker.yml

2
.github/workflows/pipeline.yml

@ -122,6 +122,7 @@ jobs:
CORE_EMAIL_USERNAME: ${{ secrets.CORE_EMAIL_USERNAME }}
CORE_EMAIL_PASSWORD: ${{ secrets.CORE_EMAIL_PASSWORD }}
APP_HOST: ${{ secrets.APP_HOST }}
RAILS_MASTER_KEY: ${{ secret.RAILS_MASTER_KEY }}
run: |
cf7 api $CF_API_ENDPOINT
cf7 auth
@ -131,4 +132,5 @@ jobs:
cf7 set-env $APP_NAME CORE_EMAIL_USERNAME $CORE_EMAIL_USERNAME
cf7 set-env $APP_NAME CORE_EMAIL_PASSWORD $CORE_EMAIL_PASSWORD
cf7 set-env $APP_NAME APP_HOST $APP_HOST
cf7 set-env $APP_NAME RAILS_MASTER_KEY $RAILS_MASTER_KEY
cf7 push --strategy rolling

3
config/database.yml

@ -31,6 +31,9 @@ development:
database: data_collector_development
host: localhost
sandbox:
<<: *default
# The specified database role being used to connect to postgres.
# To create additional roles in postgres see `$ createuser --help`.
# When left blank, postgres will use the default role. This is

34
config/webpacker.yml

@ -12,11 +12,14 @@ default: &default
# ['app/assets', 'engine/foo/app/assets']
additional_paths: ['node_modules/govuk-frontend/govuk']
# Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false
# Cache manifest.json for performance
cache_manifest: true
# Extract and emit a css file
extract_css: false
extract_css: true
# Production depends on precompilation of packs prior to booting for performance.
compile: false
static_assets_extensions:
- .jpg
@ -51,6 +54,12 @@ development:
<<: *default
compile: true
# Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false
# Extract and emit a css file
extract_css: false
# Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
@ -76,17 +85,18 @@ test:
<<: *default
compile: true
# Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false
# Extract and emit a css file
extract_css: false
# Compile test packs to a separate directory
public_output_path: packs-test
production:
<<: *default
# Production depends on precompilation of packs prior to booting for performance.
compile: false
# Cache manifest.json for performance
cache_manifest: true
sandbox:
<<: *default
# Extract and emit a css file
extract_css: true
production:
<<: *default

Loading…
Cancel
Save