beromir / Servas

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

Server error 500 #95

Open diraneyya opened 3 weeks ago

diraneyya commented 3 weeks 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 3 weeks 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