Casino (Gwydion)

10. Troubleshooting

While many issues can be tested and resolved locally during development, certain challenges may arise in staging or production environments. Troubleshooting efforts are supported by accessing logs, error tracking, and database inspection.

10.1 Local Troubleshooting

During development, utilize local testing environments to identify and resolve issues. Leverage debugging tools, inspect logs, and run tests to catch and address potential problems before deployment.

10.2 Staging and Production Troubleshooting

In staging and production environments, troubleshoot issues using the following tools:

10.2.1 Laravel Vapor

Access logs and gain insights into the serverless deployment using Laravel Vapor. Explore error logs and performance metrics to identify potential issues. Laravel Vapor provides a centralized view of the backend's health and status.

10.2.2 Sentry for Error Tracking

Sentry is employed for error tracking in the production environment. Utilize Sentry to capture and analyze errors, exceptions, and issues that occur in real-time. Sentry provides a comprehensive dashboard for monitoring and diagnosing problems.

10.3 Database Inspection

For troubleshooting issues related to data or database-specific errors, access the database using the following steps:

  1. Refer to Laravel Vapor documentation for instructions on connecting to the database in staging or production environments.
  2. Use DataGrip by JetBrains, the recommended tool for database inspection. Connect to the database using the provided credentials.
  3. Inspect database tables, run queries, and analyze data to identify and resolve issues related to database interactions.

Troubleshooting efforts may involve a combination of local testing, accessing Laravel Vapor logs, utilizing Sentry for error tracking, and inspecting the database using DataGrip. Developers are encouraged to follow best practices in diagnosing and resolving issues efficiently.

Previous
Best Practises