Closed nervo closed 6 years ago
do want this ! 🤓 😍
Maybe I'm wrong, but why drop /var/sessions
when it's still the default path used to store sessions ?
https://symfony.com/doc/current/session/sessions_directory.html
@tristanbes : Right, but starting to symfony 3.4 with flex, the default is to use the native session handler (php.ini
declared one), so this is not needed by default.
ok, my bad, the doc didn't reflect that.
For other reading this issue, you can get an app based on Flex work out of the box with
// app.yml
nginx_configs:
- file: app_php_fpm
template: configs/app_php_fpm.{{ env }}.j2
- file: app_gzip
template: configs/app_gzip.{{ env }}.j2
# App
- file: app.conf
config:
- server:
- server_name: "{{ app.host }}"
- root: "{{ app.dir }}{{ app.dir_release }}/public"
- access_log: "{{ app.log_dir }}/nginx.access.log"
- error_log: "{{ app.log_dir }}/nginx.error.log"
- include: conf.d/app_gzip
- location /:
- try_files: $uri /index.php$is_args$args
- location ~ ^/index\.php(/|$):
- include: conf.d/app_php_fpm
@tristanbes just mising the location internal
directive as seen on https://symfony.com/doc/current/setup/web_server_configuration.html#nginx
Note that it can now be enabled even in development environment.
web/app_*.php
->public/index.php
(ansible nginx, deploy)/var/logs
->/var/log
/var/sessions
(ansible files)SYMFONY_ENV
->APP_ENV
)