CORRECCIÓN: arreglar excepciones silenciosas y limpiar scripts
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import re
|
||||
|
||||
with open('docker-compose.yml', 'r') as f:
|
||||
content = f.read()
|
||||
|
||||
new_service = """ tax-api:
|
||||
build: ./tax_api
|
||||
ports:
|
||||
- "8001:8000"
|
||||
restart: unless-stopped
|
||||
|
||||
celery:"""
|
||||
content = content.replace(' celery:', new_service)
|
||||
|
||||
with open('docker-compose.yml', 'w') as f:
|
||||
f.write(content)
|
||||
Reference in New Issue
Block a user