Skip to content

Commit

Permalink
Move temp dir back to site temp dir
Browse files Browse the repository at this point in the history
Moving the whole repo inside the WSL file system.

Revert "Move temp dir to WSL filesystem because using `/mnt` is slow"
This basically reverts commit 2f41049 #88
  • Loading branch information
spaze committed Jan 13, 2024
1 parent c6ee81d commit d210a92
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion conf/nginx/dev-php.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
internal;
fastcgi_param ENVIRONMENT development;
fastcgi_param TEMP_DIR /tmp/michalspacek.cz;
include /srv/www/michalspacek.cz/conf/nginx/common-php.conf;
2 changes: 1 addition & 1 deletion conf/php/dev-michalspacek.cz.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pm.max_spare_servers = 3

chdir = /

php_admin_value[open_basedir] = /mnt/c/Users/spaze/htdocs/private/michalspacek.cz/site/:/mnt/c/Users/spaze/htdocs/private/michalspacek.cz/uploads/:/tmp/michalspacek.cz/
php_admin_value[open_basedir] = /srv/www/htdocs/private/michalspacek.cz/site/:/srv/www/htdocs/private/michalspacek.cz/uploads/:/tmp/michalspacek.cz/
php_admin_value[session.save_path] = /srv/www/michalspacek.cz/sessions/
php_admin_value[upload_tmp_dir] = /srv/www/michalspacek.cz/uploads/
php_admin_value[user_ini.filename] = ""
Expand Down
2 changes: 1 addition & 1 deletion site/app/Application/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private static function createConfigurator(bool $debugMode, ?string $extraConfig
$configurator->setDebugMode($debugMode);
$configurator->enableTracy(self::SITE_DIR . '/log');
$configurator->setTimeZone('Europe/Prague');
$configurator->setTempDirectory(ServerEnv::tryGetString('TEMP_DIR') ?? self::SITE_DIR . '/temp');
$configurator->setTempDirectory(self::SITE_DIR . '/temp');

$existingFiles = array_filter(self::getConfigurationFiles($extraConfig, $finalConfig), function (?string $path) {
return $path && is_file($path);
Expand Down

0 comments on commit d210a92

Please sign in to comment.