use env file
This commit is contained in:
parent
4011109393
commit
57c7f67987
4 changed files with 18 additions and 5 deletions
3
deploy/scripts/cdk/.env.example
Normal file
3
deploy/scripts/cdk/.env.example
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
LANGFLOW_AUTO_LOGIN=false
|
||||
LANGFLOW_SUPERUSER=langflow
|
||||
LANGFLOW_SUPERUSER_PASSWORD=654321
|
||||
|
|
@ -10,6 +10,13 @@ import {
|
|||
aws_logs as logs,
|
||||
aws_elasticloadbalancingv2 as elb,
|
||||
} from 'aws-cdk-lib';
|
||||
import * as dotenv from 'dotenv';
|
||||
const path = require('path');
|
||||
dotenv.config({path: path.join(__dirname, "../../.env")});
|
||||
|
||||
console.log(process.env.LANGFLOW_AUTO_LOGIN);
|
||||
console.log(process.env.LANGFLOW_SUPERUSER);
|
||||
console.log(process.env.LANGFLOW_SUPERUSER_PASSWORD);
|
||||
|
||||
interface BackEndProps {
|
||||
cluster: ecs.Cluster
|
||||
|
|
@ -60,9 +67,12 @@ export class BackEndCluster extends Construct {
|
|||
// "LANGFLOW_DATABASE_URL" : `mysql+pymysql://${username}:${password}@${host}:3306/${dbname}`,
|
||||
// "LANGFLOW_DATABASE_URL" : "sqlite:///./langflow.db",
|
||||
// "LANGFLOW_LANGCHAIN_CACHE" : "SQLiteCache",
|
||||
"LANGFLOW_AUTO_LOGIN" : "false",
|
||||
"LANGFLOW_SUPERUSER" : "admin",
|
||||
"LANGFLOW_SUPERUSER_PASSWORD" : "1234567"
|
||||
// "LANGFLOW_AUTO_LOGIN" : "false",
|
||||
// "LANGFLOW_SUPERUSER" : "admin",
|
||||
// "LANGFLOW_SUPERUSER_PASSWORD" : "1234567"
|
||||
"LANGFLOW_AUTO_LOGIN" : process.env.LANGFLOW_AUTO_LOGIN ?? 'false',
|
||||
"LANGFLOW_SUPERUSER" : process.env.LANGFLOW_SUPERUSER ?? "admin",
|
||||
"LANGFLOW_SUPERUSER_PASSWORD" : process.env.LANGFLOW_SUPERUSER_PASSWORD ?? "123456"
|
||||
},
|
||||
portMappings: [
|
||||
{
|
||||
|
|
|
|||
2
deploy/scripts/cdk/package-lock.json
generated
2
deploy/scripts/cdk/package-lock.json
generated
|
|
@ -8,7 +8,7 @@
|
|||
"name": "cdk",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"aws-cdk-lib": "2.86.0",
|
||||
"aws-cdk-lib": "^2.86.0",
|
||||
"cdk-ecr-deployment": "^2.5.30",
|
||||
"constructs": "^10.0.0",
|
||||
"source-map-support": "^0.5.21"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
"typescript": "~5.1.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"aws-cdk-lib": "2.86.0",
|
||||
"aws-cdk-lib": "^2.86.0",
|
||||
"cdk-ecr-deployment": "^2.5.30",
|
||||
"constructs": "^10.0.0",
|
||||
"source-map-support": "^0.5.21"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue