From 6535670cd31cae267b9c33a95101057472a56b37 Mon Sep 17 00:00:00 2001 From: a2nr Date: Sun, 4 Jan 2026 18:16:58 +0700 Subject: [PATCH] fix token --- podman-compose.yml | 4 ++-- start.sh | 4 ++-- stop.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/podman-compose.yml b/podman-compose.yml index c809617..29dde01 100644 --- a/podman-compose.yml +++ b/podman-compose.yml @@ -9,7 +9,7 @@ services: - ../content:/app/content - ./static:/app/static - ./templates:/app/templates - - ./tokens.csv:/app/tokens.csv + - ../tokens_siswa.csv:/app/tokens.csv environment: - FLASK_ENV=development - command: python app.py \ No newline at end of file + command: python app.py diff --git a/start.sh b/start.sh index 706b410..25c76c6 100755 --- a/start.sh +++ b/start.sh @@ -17,8 +17,8 @@ if [ "$(podman ps -aq -f name=lms-c-container)" ]; then else # Build and run the container echo "Building and starting container..." - podman build -t lms-c . && podman run -d -p 5000:5000 --name lms-c-container -v ../content:/app/content -v ./static:/app/static -v ./templates:/app/templates -v ./tokens.csv:/app/tokens.csv lms-c + podman-compose up --build -d fi echo "Application is now running. Access at http://localhost:5000" -echo "To stop the application, run: ./stop.sh" \ No newline at end of file +echo "To stop the application, run: ./stop.sh" diff --git a/stop.sh b/stop.sh index 9ff867b..3ad97d5 100755 --- a/stop.sh +++ b/stop.sh @@ -5,6 +5,6 @@ echo "Stopping C Programming Learning Management System..." # Stop and remove the container -podman stop lms-c-container && podman rm lms-c-container +podman-compose down -echo "Application has been stopped." \ No newline at end of file +echo "Application has been stopped."