#Laravel + Inertia in production

3 messages · Page 1 of 1 (latest)

potent spade
#

Docker compose:

Docker compose:

services:
  laravel:
    build:
      context: .
      dockerfile: ./Dockerfile
      target: staging
    image: 'psyze-backend:staging'
    ports:
      - '${APP_PORT:-80}:8080'
    # command: /usr/local/bin/run-supervisors.sh
    environment:
      WWWUSER: '${WWWUSER:-1000}'
      WWWGROUP: '${WWWGROUP:-1000}'
      APP_ENV: staging
      APP_DEBUG: false
    env_file:
      - .env
    volumes:
      - .env:/var/www/html/.env
    networks:
      - psyze-network
    healthcheck:
      test: ['CMD', 'curl', '-f', 'http://localhost:8080/up']
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 60s
    depends_on:
      pgsql:
        condition: service_healthy
      redis:
        condition: service_healthy

# And other stuff that doesnt matter
#

The current app is building and running.

The main problem is that it returns a infinite loop of 302 redirect.

No logs indicate to me the problem

#

Running php artisan inertia:start-ssr

I got:
Inertia SSR bundle not found. Set the correct Inertia SSR bundle path in your inertia.ssr.bundle config.

Then, I uncomment the bundle line, and then I got that the bundle was not found on that path.

I'm truly exausted, sorry if I'm not seeing something obvious