beromir / Servas

A self-hosted bookmark management tool.
https://servas.app
GNU General Public License v3.0
562 stars 32 forks source link

Server error 500 #95

Closed diraneyya closed 1 month ago

diraneyya commented 2 months ago

I am curious about this software and wanted to test it locally on my computer.

To do this I used the following .env and docker-compose.yaml files:

APP_NAME=Servas
APP_ENV=production
APP_KEY=
APP_DEBUG=false
APP_URL=http://localhost:9090

SERVAS_ENABLE_REGISTRATION=true

# SQLite
DB_CONNECTION=sqlite
DB_DATABASE=/var/www/html/database/sqlite/servas.db
DB_FOREIGN_KEYS=true
services:
  servas:
    image: beromir/servas
    container_name: servas
    restart: unless-stopped
    ports:
      - 9090:80
    volumes:
      - ./.env:/var/www/html/.env
      - servas-db-sqlite:/var/www/html/database/sqlite
    # labels:
    #   - "traefik.http.routers.servas.rule=Host(`Servas.docker.localhost`)"
volumes:
  servas-db-sqlite:

I am getting an internal server error (500) when browsing to http://localhost:9090:

image

Logs aren't showing much, either:

image
beromir commented 2 months ago

Have you generated the application key?

docker exec -it servas php artisan key:generate --force

https://github.com/beromir/Servas?tab=readme-ov-file#docker