fix token

master
a2nr 2026-01-04 18:16:58 +07:00
parent fe0e36796a
commit 6535670cd3
3 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ services:
- ../content:/app/content - ../content:/app/content
- ./static:/app/static - ./static:/app/static
- ./templates:/app/templates - ./templates:/app/templates
- ./tokens.csv:/app/tokens.csv - ../tokens_siswa.csv:/app/tokens.csv
environment: environment:
- FLASK_ENV=development - FLASK_ENV=development
command: python app.py command: python app.py

View File

@ -17,7 +17,7 @@ if [ "$(podman ps -aq -f name=lms-c-container)" ]; then
else else
# Build and run the container # Build and run the container
echo "Building and starting 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 fi
echo "Application is now running. Access at http://localhost:5000" echo "Application is now running. Access at http://localhost:5000"

View File

@ -5,6 +5,6 @@
echo "Stopping C Programming Learning Management System..." echo "Stopping C Programming Learning Management System..."
# Stop and remove the container # Stop and remove the container
podman stop lms-c-container && podman rm lms-c-container podman-compose down
echo "Application has been stopped." echo "Application has been stopped."