From e7de71bbaf41b00b31b63acc087a93edff01b6d0 Mon Sep 17 00:00:00 2001 From: DiogenesBR Date: Wed, 20 Sep 2023 10:40:12 +0000 Subject: [PATCH] Fix the commands that run on creation of the devcontainer --- .devcontainer/devcontainer.json | 8 +++++--- Makefile | 12 ++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 90966fb38..ab0ccf145 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,7 +15,7 @@ // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "make install_frontend && make install_backend", + "postCreateCommand": "make setup_devcontainer", "containerEnv": { "POETRY_VIRTUALENVS_IN_PROJECT": "true" @@ -31,11 +31,13 @@ "sourcery.sourcery", "eamodio.gitlens", "ms-vscode.makefile-tools", - "GitHub.vscode-pull-request-github" + "GitHub.vscode-pull-request-github", + "Codium.codium", + "ms-azuretools.vscode-docker" ] } } // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" -} +} \ No newline at end of file diff --git a/Makefile b/Makefile index 3aeafdbe8..0a750cd58 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,18 @@ install_frontend: run_frontend: cd src/frontend && npm start +run_cli: + poetry run langflow --path src/frontend/build + +run_cli_debug: + poetry run langflow --path src/frontend/build --log-level debug + +setup_devcontainer: + make init + make build_frontend + @echo 'Run Cli' + make run_cli + frontend: make install_frontend make run_frontend