جهز الـ repo للنشر عبر الـ agent
أعط الـ agent الخاص بك prompt يجهز repo موجودا للنشر، ويتوقف قبل الـ push.
كل الصفحات
- شغل الـ agent في جذر الـ repo، دون تغييرات غير محفوظة فيه، لكي يكون الـ diff الذي ينتجه من عمله وحده.
- الكود على GitHub. ربطه عبر GitHub App الخاص بغيم خطوة تقوم بها أنت، كما تشرح انشر من GitHub؛ ولا يستطيع الـ agent إكمالها وحده.
- الـ prompts تقرأ ملفات الـ repo وتعدلها فقط. ولا يتصل أي منها بغيم، فلا يحتاج الـ agent إلى مفتاح.
- كل prompt يطابق ما توثقه هذه الصفحات، لكنه لم يقس، فلا توجد نسبة نجاح. اقرأ الـ diff قبل الـ push.
يتوقع الـ prompt وجود package.json في جذر الـ repo. يفحص سكربتات build وstart، ويراجع المتغيرات التي يقرؤها الـ repo وينبهك إلى أي سر خلف NEXT_PUBLIC_، ويعدد المتغيرات التي يجب أن تضبطها، مقسمة إلى متغيرات للخادم فقط ومتغيرات عامة. ثم يعرض عليك الـ diff ويتوقف.
Prepare this Next.js repository for deployment to Ghaym Cloud (a platform-as-a-service).
Context you must respect:
- Ghaym builds a container image from this repo. Ghaym auto-detects Node projects from package.json, so no Dockerfile is needed unless this repo has an unusual build.
- The app must listen on the port given in the PORT environment variable. `next start` already does this — do not hard-code a port in the start script.
- Secrets are set as environment variables in the Ghaym console. Do not commit them and do not invent values.
- Any variable prefixed NEXT_PUBLIC_ is inlined into the browser bundle and is public. Never put a secret behind that prefix.
- The `ghaym` CLI is the main way to drive Ghaym Cloud (`npm i -g @ghaymjo/cli`): `ghaym cloud projects create --name <name>` and `ghaym cloud services create --project <project> --type git --repo <owner/name> --size <size> --site <slug>` set the project up — and after that, every deploy is a git push to the production branch, because Ghaym builds what it pulls from the connected repository.
Tasks:
1. Check package.json: confirm `build` and `start` scripts exist and that `start` does not hard-code a port. Fix if needed.
2. Audit every environment variable this repo reads. Flag any NEXT_PUBLIC_ variable that looks like a secret.
3. List every environment variable I must set in the Ghaym console, split into server-only and public, with a one-line description each. Do not fill in values.
4. Do not push. Show me the diff and stop.يتوقع الـ prompt وجود composer.json في جذر الـ repo. يضيف Dockerfile يشغل التطبيق على كل العناوين، على الـ port الذي في PORT، و.dockerignore يستثني .env وvendor. يعدد المتغيرات التي يجب أن تضبطها، ثم يعرض عليك الـ diff ويتوقف.
Prepare this Laravel repository for deployment to Ghaym Cloud (a platform-as-a-service).
Context you must respect:
- Ghaym builds a container image from this repo. Most languages are detected on their own; anything else needs a Dockerfile. This repo builds from one, so it needs a Dockerfile. A repository that already has a Dockerfile when its service is added builds from it.
- The app must listen on 0.0.0.0 and on the port given in the PORT environment variable. Do not hard-code a port.
- Secrets (APP_KEY, database credentials) are set as environment variables in the Ghaym console. Do not commit them, and do not invent values.
- The `ghaym` CLI is the main way to drive Ghaym Cloud (`npm i -g @ghaymjo/cli`): `ghaym cloud projects create --name <name>` and `ghaym cloud services create --project <project> --type git --repo <owner/name> --size <size> --site <slug>` set the project up — and after that, every deploy is a git push to the production branch, because Ghaym builds what it pulls from the connected repository.
Tasks:
1. Add a production Dockerfile that installs PHP extensions Laravel needs (including pdo_pgsql), runs `composer install --no-dev`, and starts the app bound to 0.0.0.0:$PORT.
2. Add a .dockerignore that excludes .env, vendor, node_modules, and storage caches.
3. List every environment variable I must set in the Ghaym console, with a one-line description each. Do not fill in values.
4. Do not push. Show me the diff and stop.عندما تقرأ الـ diff، اعمل له push، وأعط الـ agent باقي العمل.