docker FIX
This commit is contained in:
14
README.md
14
README.md
@@ -26,6 +26,20 @@ docker run -d \
|
|||||||
sekipos
|
sekipos
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Or ose this stack:
|
||||||
|
```yml
|
||||||
|
name: sekipos
|
||||||
|
services:
|
||||||
|
sekipos:
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
|
volumes:
|
||||||
|
- YOUR_PATH/sekipos/db:/app/db
|
||||||
|
- YOUR_PATH/sekipos/static/cache:/app/static/cache
|
||||||
|
container_name: sekipos-server
|
||||||
|
image: sekipos
|
||||||
|
```
|
||||||
|
|
||||||
## 🔌 Hardware Scanner Bridge (`ScannerGO`)
|
## 🔌 Hardware Scanner Bridge (`ScannerGO`)
|
||||||
|
|
||||||
The server needs a bridge to talk to your physical COM port. Use the `ScannerGO` binary on the machine where the scanner is plugged in.
|
The server needs a bridge to talk to your physical COM port. Use the `ScannerGO` binary on the machine where the scanner is plugged in.
|
||||||
|
|||||||
2
app.py
2
app.py
@@ -14,7 +14,7 @@ socketio = SocketIO(app, cors_allowed_origins="*")
|
|||||||
login_manager = LoginManager(app)
|
login_manager = LoginManager(app)
|
||||||
login_manager.login_view = 'login'
|
login_manager.login_view = 'login'
|
||||||
|
|
||||||
DB_FILE = 'pos_database.db'
|
DB_FILE = 'db/pos_database.db'
|
||||||
CACHE_DIR = 'static/cache'
|
CACHE_DIR = 'static/cache'
|
||||||
os.makedirs(CACHE_DIR, exist_ok=True)
|
os.makedirs(CACHE_DIR, exist_ok=True)
|
||||||
|
|
||||||
|
|||||||
2
db/.gitignore
vendored
Normal file
2
db/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*
|
||||||
|
!.gitignore
|
||||||
BIN
pos_database.db
BIN
pos_database.db
Binary file not shown.
Reference in New Issue
Block a user