diff --git a/Dockerfile b/Dockerfile index a7e75f6..fbe83e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,7 +57,7 @@ RUN crontab /etc/cron.d/get-audio RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-scripts --no-dev --optimize-autoloader RUN mkdir /data -RUN mkdir -p /var/www/html/var/cache +RUN mkdir -p /var/www/html/var/cache/prod RUN mkdir -p /var/www/html/var/log RUN chown -R 33:33 /var/www/html /data diff --git a/install.php b/install.php index 4525336..fda8952 100755 --- a/install.php +++ b/install.php @@ -12,7 +12,7 @@ shell_exec("symfony console doctrine:database:create --if-not-exists"); print "Updating migrations and setting permissions for data folder".PHP_EOL; shell_exec("symfony console doctrine:schema:create"); -shell_exec("chown -R www-data:www-data /data"); +shell_exec("chown -R www-data:www-data /data /var/www/html/var/cache"); // import reference material diff --git a/src/Entity/User.php b/src/Entity/User.php index 728378e..7d09d54 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -14,6 +14,7 @@ use Symfony\Component\Uid\Uuid; use Symfony\Component\Validator\Constraints as Assert; #[ORM\Entity(repositoryClass: UserRepository::class)] +#[ORM\Table(name: 'app_user')] #[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_EMAIL', fields: ['email'])] class User implements UserInterface, PasswordAuthenticatedUserInterface, JsonSerializable {