Huge changes
This commit is contained in:
40
20260104155940-server_backend.org
Normal file → Executable file
40
20260104155940-server_backend.org
Normal file → Executable file
@@ -32,14 +32,17 @@ The project is packaged as a Docker container, making it easy to deploy. You can
|
||||
|
||||
#+begin_src bash
|
||||
|
||||
docker compose build org_backend
|
||||
docker compose build org_backend
|
||||
|
||||
docker compose up -d org_backend
|
||||
|
||||
# To check logs
|
||||
docker compose up -d org_backend
|
||||
|
||||
# Alternatively:
|
||||
docker compose down && docker compose build --no-cache && docker compose up -d
|
||||
|
||||
# To check logs
|
||||
|
||||
docker logs -f org_backend
|
||||
|
||||
docker logs -f org_backend
|
||||
|
||||
#+end_src
|
||||
|
||||
* Bruno
|
||||
@@ -56,3 +59,28 @@ Flow of how a note would be written:
|
||||
4. This will trigger a function that republishes the notes website to include the new note.
|
||||
|
||||
**Need to think more about this.**
|
||||
|
||||
* Update
|
||||
|
||||
The org-backend is no longer hosted using docker, it is now using systemd. The backend is still built using Maven, but it is now deployed as a standalone application rather than a Docker container.
|
||||
|
||||
Here are the commands needed:
|
||||
|
||||
#+begin_src bash
|
||||
|
||||
# To build the application
|
||||
mvn clean package -DskipTests
|
||||
|
||||
# To run the application
|
||||
java -jar target/org_backend-1.0.0-SNAPSHOT.jar
|
||||
|
||||
# systemctl commands
|
||||
sudo systemctl start org_backend
|
||||
sudo systemctl stop org_backend
|
||||
sudo systemctl restart org_backend
|
||||
sudo systemctl status org_backend
|
||||
|
||||
# To check logs
|
||||
journalctl -u org_backend -f
|
||||
|
||||
#+end_src
|
||||
|
||||
Reference in New Issue
Block a user