Install dependencies in prod mode (#887)
This commit is contained in:
parent
b9e5ef8e76
commit
a165d745f2
@ -126,6 +126,12 @@ def setup_frontend(root: Path):
|
|||||||
Args:
|
Args:
|
||||||
root: root path of the project.
|
root: root path of the project.
|
||||||
"""
|
"""
|
||||||
|
# Initialize the web directory if it doesn't exist.
|
||||||
|
web_dir = prerequisites.create_web_directory(root)
|
||||||
|
|
||||||
|
# Install frontend packages
|
||||||
|
prerequisites.install_frontend_packages(web_dir)
|
||||||
|
|
||||||
# copy asset files to public folder
|
# copy asset files to public folder
|
||||||
path_ops.mkdir(str(root / constants.WEB_ASSETS_DIR))
|
path_ops.mkdir(str(root / constants.WEB_ASSETS_DIR))
|
||||||
path_ops.cp(
|
path_ops.cp(
|
||||||
|
@ -38,12 +38,6 @@ def run_frontend(app: App, root: Path, port: str):
|
|||||||
root: root path of the project.
|
root: root path of the project.
|
||||||
port: port of the app.
|
port: port of the app.
|
||||||
"""
|
"""
|
||||||
# Initialize the web directory if it doesn't exist.
|
|
||||||
web_dir = prerequisites.create_web_directory(root)
|
|
||||||
|
|
||||||
# Install frontend packages
|
|
||||||
prerequisites.install_frontend_packages(web_dir)
|
|
||||||
|
|
||||||
# Set up the frontend.
|
# Set up the frontend.
|
||||||
setup_frontend(root)
|
setup_frontend(root)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user