← スキル一覧に戻る

deployment
by Federicojaviermartino
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: deployment description: Render deployment instructions for LogiAccounting Pro. Use when deploying to production or configuring hosting. tools:
- read
- write
- bash metadata: version: "1.0" category: devops platform: render
Deployment Skill
This skill provides guidance for deploying LogiAccounting Pro to Render.
Prerequisites
- GitHub repository with the project
- Render account (free tier works)
- Environment variables configured
Quick Deploy
Option 1: Blueprint (Recommended)
The project includes render.yaml for automatic configuration:
# Just push to GitHub and connect to Render
git push origin main
Then in Render:
- New → Blueprint
- Connect GitHub repo
- Select
render.yaml - Deploy
Option 2: Manual Setup
-
Create Web Service
- Environment: Python 3
- Build Command:
cd frontend && npm install && npm run build && cd ../backend && pip install -r requirements.txt - Start Command:
cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT
-
Environment Variables
SECRET_KEY=<generate-random-string> PYTHON_VERSION=3.11.0 NODE_VERSION=20
render.yaml Reference
services:
- type: web
name: logiaccounting-pro
runtime: python
region: oregon
plan: free
buildCommand: |
cd frontend && npm install && npm run build &&
cd ../backend && pip install -r requirements.txt
startCommand: cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: SECRET_KEY
generateValue: true
- key: PYTHON_VERSION
value: 3.11.0
- key: NODE_VERSION
value: 20
healthCheckPath: /health
Environment Variables
| Variable | Required | Description |
|---|---|---|
SECRET_KEY | Yes | JWT signing key (auto-generated) |
PYTHON_VERSION | Yes | Python runtime version |
NODE_VERSION | Yes | Node.js for frontend build |
DATABASE_URL | No | PostgreSQL connection (future) |
Health Check
The API exposes /health endpoint:
curl https://your-app.onrender.com/health
# {"status": "healthy"}
Troubleshooting
Build Fails
# Check Node.js version
node --version # Should be 20+
# Check Python version
python --version # Should be 3.11+
# Manual build test
cd frontend && npm run build
cd backend && pip install -r requirements.txt
502 Bad Gateway
- Check start command is correct
- Verify PORT environment variable
- Check Render logs for errors
Static Files Not Loading
Ensure FastAPI serves the frontend build:
# backend/app/main.py
app.mount("/", StaticFiles(directory="../frontend/dist", html=True))
Post-Deployment
- Test all demo credentials work
- Verify API endpoints respond
- Check CORS allows your domain
- Monitor for errors in Render dashboard
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です