Refactor/upgrade backend and frontend parts (#2)
* ♻️ Refactor and simplify backend code * ♻️ Refactor frontend state, integrate typesafe-vuex accessors into state files * ♻️ Use new state accessors and standardize layout * 🔒 Upgrade and fix npm security audit * 🔧 Update local re-generation scripts * 🔊 Log startup exceptions to detect errors early * ✏️ Fix password reset token content * 🔥 Remove unneeded Dockerfile directives * 🔥 Remove unnecessary print * 🔥 Remove unnecessary code, upgrade dependencies in backend * ✏️ Fix typos in docstrings and comments * 🏗️ Improve user Depends utilities to simplify and remove code * 🔥 Remove deprecated SQLAlchemy parameter
This commit is contained in:

committed by
GitHub

parent
9e0b826618
commit
cd112bd683
@@ -69,7 +69,7 @@ The changes to those files only affect the local development environment, not th
|
||||
|
||||
For example, the directory with the backend code is mounted as a Docker "host volume" (in the file `docker-compose.dev.volumes.yml`), mapping the code you change live to the directory inside the container. That allows you to test your changes right away, without having to build the Docker image again. It should only be done during development, for production, you should build the Docker image with a recent version of the backend code. But during development, it allows you to iterate very fast.
|
||||
|
||||
There is also a commented out `command` override (in the file `docker-compose.dev.command.yml`), if you want to enable it, uncomment it. It makes the backend container run a process that does "nothing", but keeps the process running. That allows you to get inside your living container and run commands inside, for example a Python interpreter to test installed dependencies, or start the development server that reloads when it detectes changes.
|
||||
There is also a commented out `command` override (in the file `docker-compose.dev.command.yml`), if you want to enable it, uncomment it. It makes the backend container run a process that does "nothing", but keeps the process running. That allows you to get inside your living container and run commands inside, for example a Python interpreter to test installed dependencies, or start the development server that reloads when it detects changes.
|
||||
|
||||
To get inside the container with a `bash` session you can start the stack with:
|
||||
|
||||
@@ -91,16 +91,16 @@ root@7f2607af31c3:/app#
|
||||
|
||||
that means that you are in a `bash` session inside your container, as a `root` user, under the `/app` directory.
|
||||
|
||||
There is also a script `backend-live.sh` to run the debug live reloading server. You can run that script from inside the container with:
|
||||
There is also a script `/start-reload.sh` to run the debug live reloading server. You can run that script from inside the container with:
|
||||
|
||||
```bash
|
||||
bash ./backend-live.sh
|
||||
bash /start-reload.sh
|
||||
```
|
||||
|
||||
...it will look like:
|
||||
|
||||
```bash
|
||||
root@7f2607af31c3:/app# bash ./backend-live.sh
|
||||
root@7f2607af31c3:/app# bash /start-reload.sh
|
||||
```
|
||||
|
||||
and then hit enter. That runs the debugging server that auto reloads when it detects code changes.
|
||||
|
Reference in New Issue
Block a user