Skip to content

Commit 627e549

Browse files
committed
se muestran errores al migrar. Se muestra directorio dondse busca el wsgi.py
1 parent 820339e commit 627e549

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pip install -r requirements.txt
7777

7878
## Configuration
7979

80-
The main configuration is stored in `fabricator/sites.yml`, based on `sites-dist.yml`. Each key represents a site.
80+
The main configuration is stored in `sites.yml`, based on `sites-dist.yml`. Each key represents a site.
8181

8282
---
8383

fabricator/recipes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,11 @@ def migrate(c: Connection | DockerRunner | Context, config: dict) -> None:
290290
try:
291291
# Execute real migration command
292292
c.run(
293-
f"bash -c 'source {deploy_path}/{venv_path}/bin/activate && "
294-
f"cd {deploy_path} && python manage.py migrate "
295-
f"> /dev/null 2>&1'",
293+
f"source {deploy_path}/{venv_path}/bin/activate && "
294+
f"cd {deploy_path} && python manage.py migrate",
296295
pty=True
297296
)
297+
298298
except DeployerException as e:
299299
# Handle any exception during migration
300300
logger.error("Migration execution failed.")
@@ -397,14 +397,14 @@ def restart_services(
397397

398398
# Attempt to locate wsgi.py file
399399
result = c.run(
400-
f"find {current_path} -maxdepth 2 -name wsgi.py | head -n 1",
400+
f"find {current_path}/ -maxdepth 2 -name wsgi.py | head -n 1",
401401
hide=True,
402402
warn=True,
403403
)
404404

405405
# Abort if wsgi.py not found or if result is None
406406
if not result or result.failed or not result.stdout.strip():
407-
logger.error("Could not find wsgi.py file.")
407+
logger.error(f"Could not find wsgi.py file in {current_path}/")
408408
return
409409

410410
# Extract wsgi path and project name

0 commit comments

Comments
 (0)