noahsettersten commited on
Commit
91726a6
1 Parent(s): 10ceb35

docs: Add notes about precomputing code vectors in deployed environment

Browse files
Files changed (1) hide show
  1. README.md +11 -0
README.md CHANGED
@@ -19,6 +19,17 @@ Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
19
 
20
  Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
21
 
 
 
 
 
 
 
 
 
 
 
 
22
  ## Run in Docker
23
 
24
  1. Build the image with: `docker build . -t headwayio/medical_transcription`
 
19
 
20
  Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
21
 
22
+ ## Deployment
23
+
24
+ The app is configured to deploy to Fly.io via a `fly.toml` file. To deploy, run `fly deploy` within the app's directory.
25
+
26
+ ### Precomputing code vectors
27
+
28
+ To build the code vectors for the ICD-9 codelist for the deployed environment:
29
+ 1. Connect to the server with `fly ssh console`.
30
+ 2. Run `/app/bin/medical_transcription eval MedicalTranscription.Release.precompute_code_vectors`. This will prepare the vectors in the database if they are not present.
31
+
32
+
33
  ## Run in Docker
34
 
35
  1. Build the image with: `docker build . -t headwayio/medical_transcription`