xenfra 0.1.9__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {xenfra-0.1.9 → xenfra-0.2.1}/PKG-INFO +1 -1
  2. {xenfra-0.1.9 → xenfra-0.2.1}/pyproject.toml +1 -1
  3. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/engine.py +2 -2
  4. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/templates/cloud-init.sh.j2 +6 -10
  5. {xenfra-0.1.9 → xenfra-0.2.1}/README.md +0 -0
  6. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/__init__.py +0 -0
  7. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/api/auth.py +0 -0
  8. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/api/billing.py +0 -0
  9. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/api/connections.py +0 -0
  10. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/api/main.py +0 -0
  11. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/api/webhooks.py +0 -0
  12. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/cli/main.py +0 -0
  13. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/config.py +0 -0
  14. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/db/models.py +0 -0
  15. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/db/session.py +0 -0
  16. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/dependencies.py +0 -0
  17. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/dockerizer.py +0 -0
  18. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/mcp_client.py +0 -0
  19. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/models.py +0 -0
  20. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/recipes.py +0 -0
  21. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/security.py +0 -0
  22. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/templates/Dockerfile.j2 +0 -0
  23. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/templates/docker-compose.yml.j2 +0 -0
  24. {xenfra-0.1.9 → xenfra-0.2.1}/src/xenfra/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: xenfra
3
- Version: 0.1.9
3
+ Version: 0.2.1
4
4
  Summary: A 'Zen Mode' infrastructure engine for Python developers.
5
5
  Author: xenfra-cloud
6
6
  Author-email: xenfra-cloud <xenfracloud@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xenfra"
3
- version = "0.1.9"
3
+ version = "0.2.1"
4
4
  description = "A 'Zen Mode' infrastructure engine for Python developers."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -287,6 +287,6 @@ class InfraEngine:
287
287
 
288
288
  except Exception as e:
289
289
  if droplet:
290
- logger(f"[bold red]Deployment failed. Cleaning up created server '{droplet.name}'...[/bold red]")
291
- droplet.destroy()
290
+ logger(f"[bold red]Deployment failed. The server '{droplet.name}' will NOT be cleaned up for debugging purposes.[/bold red]")
291
+ # droplet.destroy() # Commented out for debugging
292
292
  raise e
@@ -27,18 +27,18 @@ dpkg --configure -a || true
27
27
  # -----------------------------------------------
28
28
 
29
29
  # 1. System Updates
30
- echo "🔄 [1/6] Refreshing Package Lists..." >> $LOG
30
+ echo "🔄 [1/5] Refreshing Package Lists..." >> $LOG
31
31
  apt-get update
32
32
  apt-get install -y python3-pip git curl
33
33
 
34
34
  # 2. Install Docker & Compose
35
- echo "🐳 [2/6] Installing Docker..." >> $LOG
35
+ echo "🐳 [2/5] Installing Docker..." >> $LOG
36
36
  apt-get install -y docker.io || (curl -fsSL https://get.docker.com | sh)
37
- echo "🎶 [3/6] Installing Docker Compose..." >> $LOG
37
+ echo "🎶 [3/5] Installing Docker Compose..." >> $LOG
38
38
  apt-get install -y docker-compose-v2
39
39
 
40
40
  # --- DOCKERIZED DEPLOYMENT ---
41
- echo "📦 [4/6] Installing Caddy..." >> $LOG
41
+ echo "📦 [4/5] Installing Caddy..." >> $LOG
42
42
  apt-get install -y debian-keyring debian-archive-keyring apt-transport-https
43
43
  curl -LsSf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
44
44
  curl -LsSf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
@@ -56,15 +56,11 @@ cat << EOF > /etc/caddy/Caddyfile
56
56
  EOF
57
57
  {% endif %}
58
58
 
59
- echo "🚀 [5/6] Starting application with Docker Compose..." >> $LOG
60
- cd /root/app
61
- docker-compose -f /root/app/docker-compose.yml up -d
62
-
63
59
  {% if domain %}
64
- echo "🔒 [6/6] Starting Caddy..." >> $LOG
60
+ echo "🚀 [5/5] Starting Caddy..." >> $LOG
65
61
  systemctl restart caddy
66
62
  {% else %}
67
- echo "✅ [6/6] Skipping Caddy start (no domain specified)." >> $LOG
63
+ echo "✅ [5/5] Skipping Caddy start (no domain specified)." >> $LOG
68
64
  {% endif %}
69
65
 
70
66
  # Finish
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes