Skip to content

Commit

Permalink
fix: refresh_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Nov 18, 2023
1 parent b866ba2 commit f6f81c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
dockerfile: Dockerfile
volumes:
- ./frontend:/app
- /app/node_modules/
- docker_node_modules:/app/node_modules/
ports:
- "5173:5173"
command: ["yarn", "dev", "--", "--host", "0.0.0.0"]
Expand All @@ -21,7 +21,7 @@ services:
- "8000:8000"
volumes:
- ./backend:/app
- /app/.venv/
- docker_venv:/app/.venv/
depends_on:
- postgres
environment:
Expand Down Expand Up @@ -52,3 +52,5 @@ services:

volumes:
postgres_data:
docker_node_modules:
docker_venv:
12 changes: 6 additions & 6 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,19 @@ function install_backend() {
docker exec -it venome-backend poetry install
}

function restart() {
stop
start
}

# on the docker container, reinstall all packages listed in local env (package.json, poetry.lock)
function refresh_packages() {
start
install_frontend
docker compose restart frontend
install_backend
docker compose restart backend
restart
}

function restart() {
stop
start
}

# only update dependencies and reload init sql
function soft_restart() {
Expand Down

0 comments on commit f6f81c9

Please sign in to comment.