Fix the commands that run on creation of the devcontainer

This commit is contained in:
DiogenesBR 2023-09-20 10:40:12 +00:00
commit e7de71bbaf
2 changed files with 17 additions and 3 deletions

View file

@ -15,7 +15,7 @@
// "forwardPorts": [], // "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created. // Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "make install_frontend && make install_backend", "postCreateCommand": "make setup_devcontainer",
"containerEnv": { "containerEnv": {
"POETRY_VIRTUALENVS_IN_PROJECT": "true" "POETRY_VIRTUALENVS_IN_PROJECT": "true"
@ -31,7 +31,9 @@
"sourcery.sourcery", "sourcery.sourcery",
"eamodio.gitlens", "eamodio.gitlens",
"ms-vscode.makefile-tools", "ms-vscode.makefile-tools",
"GitHub.vscode-pull-request-github" "GitHub.vscode-pull-request-github",
"Codium.codium",
"ms-azuretools.vscode-docker"
] ]
} }
} }

View file

@ -38,6 +38,18 @@ install_frontend:
run_frontend: run_frontend:
cd src/frontend && npm start 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: frontend:
make install_frontend make install_frontend
make run_frontend make run_frontend