fix token
parent
fe0e36796a
commit
6535670cd3
|
|
@ -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
|
||||||
2
start.sh
2
start.sh
|
|
@ -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"
|
||||||
|
|
|
||||||
2
stop.sh
2
stop.sh
|
|
@ -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."
|
||||||
Loading…
Reference in New Issue