This commit is contained in:
2026-03-27 16:31:09 -04:00
parent 559ab4e2a8
commit eb28e41930
3 changed files with 3 additions and 2 deletions

View File

@@ -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 COMPOSER_ALLOW_SUPERUSER=1 composer install --no-scripts --no-dev --optimize-autoloader
RUN mkdir /data 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 mkdir -p /var/www/html/var/log
RUN chown -R 33:33 /var/www/html /data RUN chown -R 33:33 /var/www/html /data

View File

@@ -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; print "Updating migrations and setting permissions for data folder".PHP_EOL;
shell_exec("symfony console doctrine:schema:create"); 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 // import reference material

View File

@@ -14,6 +14,7 @@ use Symfony\Component\Uid\Uuid;
use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: UserRepository::class)] #[ORM\Entity(repositoryClass: UserRepository::class)]
#[ORM\Table(name: 'app_user')]
#[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_EMAIL', fields: ['email'])] #[ORM\UniqueConstraint(name: 'UNIQ_IDENTIFIER_EMAIL', fields: ['email'])]
class User implements UserInterface, PasswordAuthenticatedUserInterface, JsonSerializable class User implements UserInterface, PasswordAuthenticatedUserInterface, JsonSerializable
{ {