EarthlingInteractive / fssk-laravel

Full Stack Starter Kit, using PHP/Laravel for server
https://fssk-laravel.ei-app.com/
MIT License
1 stars 0 forks source link

Production build improvements #7

Closed jpchip closed 6 years ago

jpchip commented 6 years ago

Improvements on performance and functionality of production builds.

Performance of Laravel from a mounted volume in Docker is truly awful. Like 900ms response time from super simple API calls. In a production build, where the code is just copied directly into the docker container, and config/route caching is enabled, the same service calls are under 100ms.

I updated the server dockerfile so it copies the code into the container instead of mounting it as a volume. Also, to eek out best performance, I refactored the home page route to allow route caching to be enabled. Also fixed issue preventing sessions from working correctly when running in production mode.

jpchip commented 6 years ago

Added env_file references to docker compose files