Skip to content

Problems with production mode #533

@j3rle

Description

@j3rle

Hi Didier,

Im running Deming with Docker and encountered a problem when switching the environment to production.

When I set APP_ENV=production, the app starts up, but the page loads without any styles or scripts (see screenshot). It seems that the CSS is not being loaded correctly.
Image
With APP_ENV=local, everything looks and works as expected. The containers are running fine in both cases, and I don’t see any errors in the logs when using production mode. The only changes I made were setting the APP_URL in .env to the VM’s IP address and adjusting the language settings in docker-compose.yml.

Looking at the browser console (F12), I get these errors in production:

Failed to load resource: net::ERR_CONNECTION_REFUSED app-Bt2ZpZQL.css:1  
Failed to load resource: net::ERR_CONNECTION_REFUSED app-DHSnIrJf.js:1  
Failed to load resource: net::ERR_CONNECTION_REFUSED (index):753  

Uncaught ReferenceError: Chart is not defined
    at HTMLDocument.<anonymous> ((index):753:24)

Since I’m new to both Laravel and Docker, I’m not sure if I’m missing a step or if this is a general issue in production mode. Id really appreciate it if you could share the exact steps to get Deming running correctly in production, or point me in the right direction to solve this issue.

Thanks a lot for your help!

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions