Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

[WIP] Fix config so we can run in production mode#158

Open
dsamojlenko wants to merge 3 commits into
masterfrom
run_in_production_mode
Open

[WIP] Fix config so we can run in production mode#158
dsamojlenko wants to merge 3 commits into
masterfrom
run_in_production_mode

Conversation

@dsamojlenko

@dsamojlenko dsamojlenko commented Feb 19, 2020

Copy link
Copy Markdown
Member

This fixes some config defaults so we can run the service in production mode.

Basically just had to configure the allowedOrigins for web sockets - we're not using web sockets at the moment, so this doesn't really matter... just set it to the BASE_URL from the environment.

With this change, I was able to run npm install --production and then npm run start which brings the service up in production mode. I then ran the cypress tests, and everything is green.

I also updated the Dockerfile to build and run in production.

@dsamojlenko dsamojlenko requested a review from a team as a code owner February 19, 2020 22:39
@jeffmaher jeffmaher temporarily deployed to cppd-medical-run-in-pro-i79lhh February 19, 2020 22:40 Inactive
@dsamojlenko dsamojlenko temporarily deployed to cppd-medical-run-in-pro-i79lhh February 19, 2020 22:41 Inactive
@dsamojlenko dsamojlenko temporarily deployed to cppd-medical-run-in-pro-i79lhh February 20, 2020 14:31 Inactive
@CalvinRodo

Copy link
Copy Markdown
Member

I want to hold off on this until we get the app running in the cloud environment.

@dsamojlenko dsamojlenko changed the title Fix config so we can run in production mode [WIP] Fix config so we can run in production mode Feb 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants