modify LANGFLOW_DATABASE_URL
This commit is contained in:
parent
9e8906e309
commit
2b2d8f3a87
2 changed files with 9 additions and 8 deletions
|
|
@ -57,9 +57,9 @@ export class BackEndCluster extends Construct {
|
||||||
}),
|
}),
|
||||||
environment:{
|
environment:{
|
||||||
// user:pass@endpoint:port/dbname
|
// user:pass@endpoint:port/dbname
|
||||||
// "LANGFLOW_DATABASE_URL" : `mysql+pymysql://${ecs.Secret.fromSecretsManager(secretsDB, 'username')}:${ecs.Secret.fromSecretsManager(secretsDB, 'password')}@${ecs.Secret.fromSecretsManager(secretsDB, 'host')}:3306/${ecs.Secret.fromSecretsManager(secretsDB, 'dbname')}`,
|
// "LANGFLOW_DATABASE_URL" : `mysql+pymysql://${username}:${password}@${host}:3306/${dbname}`,
|
||||||
"LANGFLOW_DATABASE_URL" : "sqlite:///./langflow.db",
|
// "LANGFLOW_DATABASE_URL" : "sqlite:///./langflow.db",
|
||||||
"LANGFLOW_LANGCHAIN_CACHE" : "SQLiteCache",
|
// "LANGFLOW_LANGCHAIN_CACHE" : "SQLiteCache",
|
||||||
"LANGFLOW_AUTO_LOGIN" : "false",
|
"LANGFLOW_AUTO_LOGIN" : "false",
|
||||||
"LANGFLOW_SUPERUSER" : "admin",
|
"LANGFLOW_SUPERUSER" : "admin",
|
||||||
"LANGFLOW_SUPERUSER_PASSWORD" : "1234567"
|
"LANGFLOW_SUPERUSER_PASSWORD" : "1234567"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import platform
|
import platform
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
import time
|
import time
|
||||||
import webbrowser
|
import webbrowser
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
@ -128,11 +129,11 @@ def run(
|
||||||
dev: bool = typer.Option(False, help="Run in development mode (may contain bugs)"),
|
dev: bool = typer.Option(False, help="Run in development mode (may contain bugs)"),
|
||||||
# This variable does not work but is set by the .env file
|
# This variable does not work but is set by the .env file
|
||||||
# and works with Pydantic
|
# and works with Pydantic
|
||||||
# database_url: str = typer.Option(
|
database_url: str = typer.Option(
|
||||||
# None,
|
"mysql+pymysql://{}:{}@{}:3306/{}".format(os.environ["username"],os.environ["password"],os.environ["host"],os.environ["dbname"]),
|
||||||
# help="Database URL to connect to. If not provided, a local SQLite database will be used.",
|
help="Database URL to connect to. If not provided, a local SQLite database will be used.",
|
||||||
# envvar="LANGFLOW_DATABASE_URL",
|
envvar="LANGFLOW_DATABASE_URL",
|
||||||
# ),
|
),
|
||||||
path: str = typer.Option(
|
path: str = typer.Option(
|
||||||
None,
|
None,
|
||||||
help="Path to the frontend directory containing build files. This is for development purposes only.",
|
help="Path to the frontend directory containing build files. This is for development purposes only.",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue