diff --git a/cdk.Dockerfile b/cdk.Dockerfile index 44ccf0acb..670ae49bd 100644 --- a/cdk.Dockerfile +++ b/cdk.Dockerfile @@ -17,4 +17,4 @@ RUN poetry config virtualenvs.create false && poetry install --no-interaction -- RUN poetry add pymysql==1.0.2 -CMD ["uvicorn", "--factory", "src.backend.langflow.main:create_app", "--host", "0.0.0.0", "--port", "7860", "--reload", "--log-level", "debug"] +CMD ["sh", "./container-cmd-cdk.sh"] diff --git a/container-cmd-cdk.sh b/container-cmd-cdk.sh new file mode 100644 index 000000000..3ac6400d8 --- /dev/null +++ b/container-cmd-cdk.sh @@ -0,0 +1,3 @@ +export LANGFLOW_DATABASE_URL="mysql+pymysql://${username}:${password}@${host}:3306/${dbname}" +# echo $LANGFLOW_DATABASE_URL +uvicorn --factory src.backend.langflow.main:create_app --host 0.0.0.0 --port 7860 --reload --log-level debug \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8799c90aa..7616600da 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: backend: build: context: ./ - dockerfile: ./cdk.Dockerfile + dockerfile: ./dev.Dockerfile env_file: - .env ports: diff --git a/scripts/aws/README.ja.md b/scripts/aws/README.ja.md index e8c7c6a81..aa3b6c710 100644 --- a/scripts/aws/README.ja.md +++ b/scripts/aws/README.ja.md @@ -28,7 +28,7 @@ Fargate のタスクはフロントエンドとバックエンドに分かれて 1. 以下のコマンドを実行します。 ```shell - git clone -b aws-cdk-dev2 https://github.com/kazuki306/langflow + git clone -b aws-cdk https://github.com/logspace-ai/langflow.git cd langflow/scripts/aws cp .env.example .env # 環境設定を変える場合はこのファイル(.env)を編集してください。 npm ci diff --git a/scripts/aws/README.md b/scripts/aws/README.md index 9190046a3..b388d46d1 100644 --- a/scripts/aws/README.md +++ b/scripts/aws/README.md @@ -27,14 +27,14 @@ If you just want to deploy resources, you do not need in-depth knowledge of each 1. When you see `Done!` in Cloudshell, open `cloud9-for-prototyping` from [AWS Cloud9](https://us-east-1.console.aws.amazon.com/cloud9control/home?region=us-east-1#/). ![make-cloud9](./img/langflow-cloud9-en.png) 1. Run the following command in the Cloud9 terminal. - ```shell - git clone -b aws-cdk-dev2 https://github.com/kazuki306/langflow - cd langflow/scripts/aws - cp .env.example .env # Edit this file if you need environment settings - npm ci - cdk bootstrap - cdk deploy - ``` + ```shell + git clone -b aws-cdk https://github.com/logspace-ai/langflow.git + cd langflow/scripts/aws + cp .env.example .env # Edit this file if you need environment settings + npm ci + cdk bootstrap + cdk deploy + ``` 1. Access the URL displayed. ```shell Outputs: