GitHub Actions
commited on
Commit
·
cc7e10f
1
Parent(s):
2443dba
🚀 Auto-deploy from GitHub Actions
Browse filesDeployed from: bpmbox/AUTOCREATE
Commit: 64ed64f5a0208cb314929af07d058b6d33e5710d
Branch: main
Workflow: 🚀 Deploy to Hugging Face Space
Updated files:
- System workflow analysis notebook
- Core Python modules
- Controllers and routers
- Documentation and configs
README.md
CHANGED
|
@@ -12,6 +12,40 @@ license: mit
|
|
| 12 |
|
| 13 |
# 🏢 AUTOCREATE株式会社 - 世界初のAI社長×無職CTO体制!
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
## 📚 ドキュメント一覧
|
| 16 |
|
| 17 |
- [EMERGENCY_MEMORY_FOR_MIYATAKEN999.md](md_docs/EMERGENCY_MEMORY_FOR_MIYATAKEN999.md)
|
|
|
|
| 12 |
|
| 13 |
# 🏢 AUTOCREATE株式会社 - 世界初のAI社長×無職CTO体制!
|
| 14 |
|
| 15 |
+
## 🎨 よく使うArtisanコマンド(Laravel風)
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
# 🔍 システム情報・ルート確認
|
| 19 |
+
python artisan route:list # 全ルート一覧
|
| 20 |
+
python artisan route:active # アクティブルートのみ
|
| 21 |
+
python artisan gradio:list # Gradio機能一覧
|
| 22 |
+
|
| 23 |
+
# 🧪 テスト・検証
|
| 24 |
+
python artisan test:copilot # Copilot自動化システムテスト
|
| 25 |
+
python artisan test:unit # ユニットテスト実行
|
| 26 |
+
python artisan test:feature # 機能テスト実行
|
| 27 |
+
python artisan cicd full # 完全CI/CDパイプライン
|
| 28 |
+
|
| 29 |
+
# 🚀 サーバー・API
|
| 30 |
+
python artisan fastapi:start # FastAPIサーバー起動
|
| 31 |
+
python artisan fastapi:integration # FastAPI統合テスト
|
| 32 |
+
|
| 33 |
+
# ⚙️ コード生成
|
| 34 |
+
python artisan make:controller UserController # コントローラー作成
|
| 35 |
+
python artisan make:model User # モデル作成
|
| 36 |
+
python artisan make:migration create_users_table # マイグレーション作成
|
| 37 |
+
|
| 38 |
+
# 🎨 Gradio機能テスト
|
| 39 |
+
python artisan gradio:test --fix # Gradio機能テスト(自動修正付き)
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
### 💡 クイックスタート
|
| 43 |
+
1. **環境準備**: `python -m venv venv && venv\Scripts\activate`
|
| 44 |
+
2. **依存関係**: `pip install -r requirements.txt`
|
| 45 |
+
3. **テスト実行**: `python artisan test:copilot`
|
| 46 |
+
4. **サーバー起動**: `python artisan fastapi:start`
|
| 47 |
+
5. **ブラウザ**: http://localhost:8000
|
| 48 |
+
|
| 49 |
## 📚 ドキュメント一覧
|
| 50 |
|
| 51 |
- [EMERGENCY_MEMORY_FOR_MIYATAKEN999.md](md_docs/EMERGENCY_MEMORY_FOR_MIYATAKEN999.md)
|
app.py
CHANGED
|
@@ -493,31 +493,39 @@ def initialize_laravel_style_gradio():
|
|
| 493 |
traceback.print_exc()
|
| 494 |
|
| 495 |
# 最小限のフォールバック
|
|
|
|
|
|
|
| 496 |
from fastapi import FastAPI
|
| 497 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 498 |
|
| 499 |
@app.get("/")
|
| 500 |
async def fallback_root():
|
| 501 |
return {"message": "Laravel風アプリ(フォールバック)", "status": "fallback"}
|
| 502 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 503 |
return app
|
| 504 |
-
|
| 505 |
-
# フォールバック: 通常のFastAPIアプリを返す
|
| 506 |
-
print("⚠️ Falling back to standard FastAPI app with Laravel features")
|
| 507 |
-
|
| 508 |
-
from fastapi import FastAPI
|
| 509 |
-
from fastapi.middleware.cors import CORSMiddleware
|
| 510 |
-
|
| 511 |
-
app = FastAPI(
|
| 512 |
-
title="AI Development Platform (Laravel Fallback)",
|
| 513 |
-
description="Laravel風のGradio統合プラットフォーム(フォールバック)",
|
| 514 |
-
version="1.0.0"
|
| 515 |
-
)
|
| 516 |
-
|
| 517 |
-
# CORS設定
|
| 518 |
-
app.add_middleware(
|
| 519 |
-
CORSMiddleware,
|
| 520 |
-
allow_origins=["*"],
|
| 521 |
allow_credentials=True,
|
| 522 |
allow_methods=["*"],
|
| 523 |
allow_headers=["*"],
|
|
|
|
| 493 |
traceback.print_exc()
|
| 494 |
|
| 495 |
# 最小限のフォールバック
|
| 496 |
+
print("⚠️ Falling back to standard FastAPI app with Laravel features")
|
| 497 |
+
|
| 498 |
from fastapi import FastAPI
|
| 499 |
+
from fastapi.middleware.cors import CORSMiddleware
|
| 500 |
+
|
| 501 |
+
app = FastAPI(
|
| 502 |
+
title="AI Development Platform (Laravel Fallback)",
|
| 503 |
+
description="Laravel風のGradio統合プラットフォーム(フォールバック)",
|
| 504 |
+
version="1.0.0"
|
| 505 |
+
)
|
| 506 |
+
|
| 507 |
+
# CORS設定
|
| 508 |
+
app.add_middleware(
|
| 509 |
+
CORSMiddleware,
|
| 510 |
+
allow_origins=["*"],
|
| 511 |
+
allow_credentials=True,
|
| 512 |
+
allow_methods=["*"],
|
| 513 |
+
allow_headers=["*"],
|
| 514 |
+
)
|
| 515 |
|
| 516 |
@app.get("/")
|
| 517 |
async def fallback_root():
|
| 518 |
return {"message": "Laravel風アプリ(フォールバック)", "status": "fallback"}
|
| 519 |
|
| 520 |
+
@app.get("/api/status")
|
| 521 |
+
async def api_status():
|
| 522 |
+
return {"status": "ok", "mode": "fallback"}
|
| 523 |
+
|
| 524 |
+
@app.post("/automation/trigger")
|
| 525 |
+
async def automation_trigger(request: dict):
|
| 526 |
+
return {"message": "自動化トリガー(フォールバック)", "received": request}
|
| 527 |
+
|
| 528 |
return app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 529 |
allow_credentials=True,
|
| 530 |
allow_methods=["*"],
|
| 531 |
allow_headers=["*"],
|