-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into k-allagbe/issue18-update-env-var-template
- Loading branch information
Showing
2 changed files
with
34 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,6 @@ | ||
# Deployment | ||
|
||
## Azure | ||
Create and set the environment variables based on `.env.template`. Make sure | ||
Note on the container: Create and set the environment variables based on `.env.template`. Make sure | ||
`FINESSE_BACKEND_DEBUG_MODE` is NOT set to `True` in PRODUCTION builds. | ||
|
||
Build (do this from your WSL Ubuntu where Docker is already installed): | ||
|
||
``` | ||
docker build -t finesse-backend . | ||
``` | ||
|
||
test locally: | ||
|
||
``` | ||
export PORT=<your_port_here> | ||
docker run -p $PORT:$PORT -e PORT=$PORT --env-file .env finesse-backend | ||
``` | ||
Refer to the [infrastructure repository](https://github.com/ai-cfia/infra) for a Kubernetes deployment. The secrets (in this case environment variables) are managed with Hashicorp Vault. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters