Skip to content

Commit cce6dfd

Browse files
authored
Updated the way to start the app (#96)
1 parent cf46da9 commit cce6dfd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ To develop and test Code-Generator:
5858
When developing the app and new templates, run the app in dev mode:
5959

6060
```sh
61-
DEV_MODE=1 streamlit run app/streamlit_app.py
61+
DEV_MODE=1 streamlit run streamlit_app.py
6262
```
6363

6464
This allows to run and debug the generated templates from the `dist` folder.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ RUN pip install -r requirements.txt
1515

1616
EXPOSE 80
1717

18-
CMD ["bash", "-c", "streamlit run --browser.serverAddress 0.0.0.0 --server.port 80 app/streamlit_app.py"]
18+
CMD ["bash", "-c", "streamlit run --browser.serverAddress 0.0.0.0 --server.port 80 streamlit_app.py"]

app/streamlit_app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
from pathlib import Path
55

66
import streamlit as st
7-
from codegen import CodeGenerator
8-
from utils import import_from_file
7+
8+
from app.codegen import CodeGenerator
9+
from app.utils import import_from_file
910

1011
__version__ = "0.1.0"
1112
DEV_MODE = int(os.getenv("DEV_MODE", 0)) == 1

0 commit comments

Comments
 (0)