cloudkasalu
Laravel 11 Build Commands Error
Hey, i have my nixpacks.toml file setup to run the following commands:
[phases.build]
cmds = ['npm run build','php artisan optimize:clear','php artisan migrate','php artisan db:seed','php artisan storage:link']
i am running into an error when building
Dockerfile:26
-------------------
24 | COPY . /app/.
25 | RUN npm run build
26 | >>> RUN php artisan optimize:clear
27 | RUN php artisan migrate
28 | RUN php artisan db:seed
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c php artisan optimize:clear" did not complete successfully: exit code: 1
Error: Docker build failed
Project ID: 68fa9062-dcb8-4738-96a5-7a2e116847e7
2 replies
Laravel Build Error
I am trying to deploy my laravel 11 app and i am running into this build error
#12 5.646 1 [internal]:0
#12 5.646 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Illuminate\Foundation\Support\Providers\RouteServiceProvider), "Illuminate\Foundation\Support\Providers\RouteServiceProvider")
#12 5.646
#12 5.646 2 [internal]:0
#12 5.646 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Illuminate\Foundation\Support\Providers\RouteServiceProvider), "Illuminate\Foundation\Support\Providers\RouteServiceProvider")
#12 5.655 Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
#12 ERROR: process "/bin/bash -ol pipefail -c composer install --ignore-platform-reqs" did not complete successfully: exit code: 1
-----
[ 8/16] RUN composer install --ignore-platform-reqs:5.646 816▕ } 5.646 817▕ } 5.646 1 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Illuminate\Foundation\Support\Providers\RouteServiceProvider), "Illuminate\Foundation\Support\Providers\RouteServiceProvider") 5.646 5.646 2 [internal]:0 5.646 Illuminate\Foundation\Application::Illuminate\Foundation{closure}(Object(Illuminate\Foundation\Support\Providers\RouteServiceProvider), "Illuminate\Foundation\Support\Providers\RouteServiceProvider") 5.655 Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 ----- Dockerfile:20 ------------------- 18 | COPY . /app/. 19 | RUN mkdir -p /var/log/nginx && mkdir -p /var/cache/nginx 20 | >>> RUN composer install --ignore-platform-reqs 21 | RUN npm ci 22 | ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c composer install --ignore-platform-reqs" did not complete successfully: exit code: 1 Error: Docker build failed Project ID: 68fa9062-dcb8-4738-96a5-7a2e116847e7
2 replies
Am unable to upload images with laravel app
Project ID: 17cc2546-a50b-4c61-b4e2-f665e56c4750
This is first time using laravel for backend on railway, when i attempt to upload an image it seems to get destroyed, like i do not have permission to do so
49 replies
Css and Javascript links being served on http
am receiving the error below in my browser console, am running a laravel 10 app with docker
awis-beta-production.up.railway.app/:14 Mixed Content: The page at 'https://awis-beta-production.up.railway.app/' was loaded over HTTPS, but requested an insecure script 'http://awis-beta-production.up.railway.app/build/assets/app-uKLOvLP4.js'. This request has been blocked; the content must be served over HTTPS.
28 replies
Php Project getting error 403 after deployment
hey guys
server {
listen 80 default_server;
root /app/public;
index index.php index.html index.htm;
location ~ .php$ {
fastcgi_pass php:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
}
is returning 403 Forbidden this is the error log
2023/05/01 09:51:54 [error] 11#11: *2 directory index of "/app/public/" is forbidden, client: 192.168.0.4, server: , request: "GET / HTTP/1.1", host: "company-site-php-production.up.railway.app"
10 replies