Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the project to work out of the box #1

Open
agelospanagiotakis opened this issue Dec 10, 2024 · 1 comment
Open

fix the project to work out of the box #1

agelospanagiotakis opened this issue Dec 10, 2024 · 1 comment

Comments

@agelospanagiotakis
Copy link

Description

update .env.example
add instruction to copy from .env.example
add these to the the env.example
-APP_KEY=
+APP_KEY=base64:p1bUrPrXlpGI/1kOqY/b44XijDrUXXHsQ8jFYNGPtmc=

-DB_CONNECTION=sqlite
-# DB_HOST=127.0.0.1
-# DB_PORT=3306
-# DB_DATABASE=laravel
-# DB_USERNAME=root
-# DB_PASSWORD=
+DB_CONNECTION=pgsql
+DB_HOST=pgsql
+DB_PORT=5432
+DB_DATABASE=laravel
+DB_USERNAME=sail
+DB_PASSWORD=password

-VITE_TYPESENSE_READ_ONLY_API_KEY="Generate a read-only API key in either Typesense Cloud or your self-hosted Typesense instance"
-VITE_TYPESENSE_HOST="${TYPESENSE_HOST}"
+SCOUT_DRIVER=typesense
+TYPESENSE_HOST=typesense
+TYPESENSE_PORT=8108
+TYPESENSE_PATH=''
+TYPESENSE_PROTOCOL=http
+FORWARD_TYPESENSE_PORT=8108
+TYPESENSE_DATA_DIR=/typesense-data
+TYPESENSE_API_KEY=xyz
+TYPESENSE_ENABLE_CORS=true
+TYPESENSE_DEBUG=true
+VITE_TYPESENSE_READ_ONLY_API_KEY="xyz"
+VITE_TYPESENSE_HOST=typesense

remove mailpit and selenium as irrelevant from docker-compose.yml
add
volumes:
- 'sail-pgsql:/var/lib/postgresql/data'
- './vendor/laravel/sail/database/pgsql/create-testing-database.sql:/docker-entrypoint-initdb.d/10-create-testing-database.sql'

  •        - './data:/data'
    
  •        - './.env:/.env'
    
  •        - './scripts/sourcedb.sh:/sourcedb.sh'
    

and insructions to do the following in the postgress container
./vendor/bin/sail exec -it pgsql bash
chmod a+x ./sourcedb.sh
./sourcedb.sh

@tharropoulos
Copy link
Collaborator

Please check out #2 and inform us if that matches your changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants