أُنشئ من Tokal/Test
Fix deployment runtime to avoid 502 on hosted server
فشلت بعض الفحوصات
Deploy Backend / deploy (push) Has been cancelled
فشلت بعض الفحوصات
Deploy Backend / deploy (push) Has been cancelled
هذا الالتزام موجود في:
@@ -53,7 +53,7 @@ RUN cp .env.example .env || true \
|
|||||||
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 8000
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
CMD ["php-fpm", "-F"]
|
CMD ["sh", "-c", "php artisan serve --host=0.0.0.0 --port=${PORT:-8000}"]
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ services:
|
|||||||
DB_USERNAME: ${DB_USERNAME:-postgres}
|
DB_USERNAME: ${DB_USERNAME:-postgres}
|
||||||
DB_PASSWORD: ${DB_PASSWORD:-secret}
|
DB_PASSWORD: ${DB_PASSWORD:-secret}
|
||||||
RUN_MIGRATIONS: "true"
|
RUN_MIGRATIONS: "true"
|
||||||
|
command: ["php-fpm", "-F"]
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ php artisan key:generate --force --no-interaction || true
|
|||||||
php artisan storage:link || true
|
php artisan storage:link || true
|
||||||
|
|
||||||
if [ "${RUN_MIGRATIONS}" = "true" ]; then
|
if [ "${RUN_MIGRATIONS}" = "true" ]; then
|
||||||
php artisan migrate --force --no-interaction
|
php artisan migrate --force --no-interaction || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
php artisan config:cache || true
|
php artisan config:cache || true
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم