To set up the environment for the application, create a deployment.env
file in the appropriate folder based on the environment needs. Use containers/apps/prod/env
for production and containers/apps/dev/env
for development. This file will contain the necessary environment variables required for the application to run.
- Navigate to the appropriate folder:
- For production:
containers/apps/prod/env
- For development:
containers/apps/dev/env
- For production:
- Create a new file named
deployment.env
. - Add the required environment variables to the
deployment.env
file.
Below is an example of what the deployment.env
file might look like:
# Database configuration
CODESET_AUTHORING_TOOL_PORT=9000
POSTGRES_USER=postgres-user
POSTGRES_PASSWORD=postgres-password
POSTGRES_DB=example-db
POSTGRES_URL=jdbc:postgresql://example-db-url:5432/example-db
ADMIN_USER_PASSWORD=admin-password
JWT_SECRET=jwt-secret
[email protected]
[email protected]
EMAIL_HOST=smtp.host
EMAIL_PROTOCOL=smtp
SMTP_PORT=25
Make sure to replace the placeholder values with the actual values for your environment.
- Ensure that the
deployment.env
file is not committed to version control to avoid exposing sensitive information.