diff --git a/fe/config/application.template.yml b/fe/config/application.template.yml index f649017..ca51e50 100644 --- a/fe/config/application.template.yml +++ b/fe/config/application.template.yml @@ -7,7 +7,7 @@ development: # === FE === API_URL: http://localhost:8080/api/v1 FE_PORT: 3000 - + # === BE === # PORT @@ -27,7 +27,7 @@ development: # SWAGGER SWAGGER_SERVER_URL: http://localhost:3000 SWAGGER_ENDPOINT: /api-docs - + # API BASE_PATH: /api/v1 SERVER_STATIC_BUILD: 'false' @@ -41,7 +41,7 @@ test: # === FE === API_URL: http://localhost:8080/api/v1 FE_PORT: 3000 - + # === BE === # PORT @@ -61,29 +61,40 @@ test: # SWAGGER SWAGGER_SERVER_URL: http://localhost:3000 SWAGGER_ENDPOINT: /api-docs - + # API BASE_PATH: /api/v1 SERVER_STATIC_BUILD: 'true' - -# production: -# # ENV -# ENV: production -# # FE -# API_URL: +production: + NODE_ENV: production + ENV: production + PROXY_ENFORCE: false + PROXIED_API_URL: '' + PROXIED_API_TOKEN: '' -# # BE -# PORT: + # === FE === + API_URL: /api/v1 -# # LOG -# LOG_FORMAT: dev -# LOG_DIR: ../logs + # === BE === + # PORT + PORT: 8080 -# # CORS -# ORIGIN: -# CREDENTIALS: true + # LOG + LOG_FORMAT: prod + LOG_DIR: ../../../tmp + + # CORS + ORIGIN: "*" # we'll want to limit CORS in prod once we have a domain + CREDENTIALS: true + + # SWAGGER_SERVER_URL: http://localhost:3000 + # SWAGGER_ENDPOINT: /api-docs -# # DATABASE -# DATABASE_URL: your-production-postgres-url -# SHADOW_DATABASE_URL: your-production-shadow-postgres-url \ No newline at end of file + # API + BASE_PATH: /api/v1 + SERVER_STATIC_BUILD: 'true' + + # DATABASE + DATABASE_URL: your-production-postgres-url + SHADOW_DATABASE_URL: your-production-shadow-postgres-url diff --git a/fe/package.json b/fe/package.json index f1f8b9f..68a473d 100644 --- a/fe/package.json +++ b/fe/package.json @@ -82,4 +82,4 @@ "webpack-bundle-analyzer": "^4.5.0", "webpack-dev-server": "^4.7.4" } -} \ No newline at end of file +} diff --git a/package.json b/package.json index df9fb30..f970680 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "fe:build": "yarn --cwd fe build", "be:dev": "yarn --cwd be dev", "be:server": "node ./be/server.js", + "deploy": "yarn && NODE_ENV=production yarn fe:build && NODE_ENV=production yarn be:server", "dev": "concurrently --kill-others --names \"FE,BE\" -c \"bgBlue.bold,bgMagenta.bold\" \"yarn fe:start\" \"yarn be:dev\"", "test:integration": "cypress run", "test": "yarn && node scripts/test-suite.mjs",